Retro68/gcc/newlib/libc/machine/sparc/shuffle.c

16 lines
246 B
C
Raw Normal View History

2017-04-11 21:13:36 +00:00
/* Cover function to sparclet `shuffle' instruction.
This file is in the public domain. */
#ifdef __sparclet__
int
shuffle (int a, int b)
{
int res;
__asm__ ("shuffle %1,%2,%0" : "=r" (res) : "r" (a), "r" (b));
return res;
}
#endif