mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-01 11:52:47 +00:00
16 lines
237 B
C
16 lines
237 B
C
|
/* Cover function to sparclet `scan' instruction.
|
||
|
|
||
|
This file is in the public domain. */
|
||
|
|
||
|
#ifdef __sparclet__
|
||
|
|
||
|
int
|
||
|
scan (int a, int b)
|
||
|
{
|
||
|
int res;
|
||
|
__asm__ ("scan %1,%2,%0" : "=r" (res) : "r" (a), "r" (b));
|
||
|
return res;
|
||
|
}
|
||
|
|
||
|
#endif
|