Changeset 1360 for trunk/tigcc/include/C/stdlib.h
- Timestamp:
- 07/24/09 18:55:27 (3 years ago)
- File:
-
- 1 edited
-
trunk/tigcc/include/C/stdlib.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tigcc/include/C/stdlib.h
r1307 r1360 42 42 extern short atoi(const char*)__ATTR_LIB_C__; 43 43 extern long atol(const char*)__ATTR_LIB_C__; 44 extern void *bsearch(const void* ,const void*,short,short,compare_t)__ATTR_LIB_C__;44 extern void *bsearch(const void* asm("a0"),const void* asm("a1"),short asm("d0"),short asm("d1"),compare_t asm("a2"))__ATTR_LIB_ASM__; 45 45 #ifndef __HAVE_calloc 46 46 #define __HAVE_calloc … … 58 58 #define max(a,b) ({typeof(a) __a = (a); typeof(b) __b = (b); (__a > __b) ? __a : __b;}) 59 59 #define min(a,b) ({typeof(a) __a = (a); typeof(b) __b = (b); (__a < __b) ? __a : __b;}) 60 extern void qsort(void* ,short,short,compare_t)__ATTR_LIB_C__;60 extern void qsort(void* asm("a0"),short asm("d0"),short asm("d1"),compare_t asm("a2"))__ATTR_LIB_ASM__; 61 61 extern short rand(void)__ATTR_LIB_ASM__; 62 62 #define random(x) ((short)((long)(unsigned short)rand()*(unsigned short)(x)/32768))
Note: See TracChangeset
for help on using the changeset viewer.
