OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [sparc/] [shuffle.c] - Blame information for rev 345

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/* Cover function to sparclet `shuffle' instruction.
2
 
3
   This file is in the public domain.  */
4
 
5
#ifdef __sparclet__
6
 
7
int
8
shuffle (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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.