source: trunk/libs/newlib/src/newlib/libc/machine/sparc/shuffle.c @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 246 bytes
Line 
1/* Cover function to sparclet `shuffle' instruction.
2
3   This file is in the public domain.  */
4
5#ifdef __sparclet__
6
7int
8shuffle (int a, int b)
9{
10  int res;
11  __asm__ ("shuffle %1,%2,%0" : "=r" (res) : "r" (a), "r" (b));
12  return res;
13}
14
15#endif
Note: See TracBrowser for help on using the repository browser.