source:
trunk/sys/dietlibc/abs.c
@
378
Last change on this file since 378 was 1, checked in by , 8 years ago | |
---|---|
File size: 155 bytes |
Rev | Line | |
---|---|---|
[1] | 1 | #include <endian.h> |
2 | #include <stdlib.h> | |
3 | ||
4 | int abs(int i) { return i>=0?i:-i; } | |
5 | #if __WORDSIZE == 32 | |
6 | long labs(long i) __attribute__((alias("abs"))); | |
7 | #endif |
Note: See TracBrowser
for help on using the repository browser.