source: trunk/sys/dietlibc/abs.c @ 182

Last change on this file since 182 was 1, checked in by alain, 7 years ago

First import

File size: 155 bytes
Line 
1#include <endian.h>
2#include <stdlib.h>
3
4int abs(int i) { return i>=0?i:-i; }
5#if __WORDSIZE == 32
6long labs(long i) __attribute__((alias("abs")));
7#endif
Note: See TracBrowser for help on using the repository browser.