newlib-cygwin/newlib/libc/machine/sparc/scan.c

16 lines
237 B
C
Raw Normal View History

2000-02-18 03:39:52 +08:00
/* 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