mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-24 23:32:06 +00:00
16 lines
246 B
C
16 lines
246 B
C
/* 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
|