source:
trunk/libs/newlib/src/newlib/libc/machine/sparc/scan.c
@
444
Last change on this file since 444 was 444, checked in by , 6 years ago | |
---|---|
File size: 237 bytes |
Rev | Line | |
---|---|---|
[444] | 1 | /* Cover function to sparclet `scan' instruction. |
2 | ||
3 | This file is in the public domain. */ | |
4 | ||
5 | #ifdef __sparclet__ | |
6 | ||
7 | int | |
8 | scan (int a, int b) | |
9 | { | |
10 | int res; | |
11 | __asm__ ("scan %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.