1
0
Fork 0
forked from len0rd/rockbox

libc: Correct definition of labs()' and add llabs()

Change-Id: Ie1f4a5660ef17ea3ba383441f257ad7ee02c2061
This commit is contained in:
Solomon Peachy 2024-10-12 11:55:56 -04:00
parent e1bed147a3
commit 8dc42711b4

View file

@ -50,7 +50,8 @@ int rand(void);
#endif #endif
#define abs(x) ((int)ABS(x)) #define abs(x) ((int)ABS(x))
#define labs(x) ((long)abs(x)) #define labs(x) ((long)ABS(x))
#define llabs(x) ((long long)ABS(x))
#ifdef SIMULATOR #ifdef SIMULATOR
void exit(int status); void exit(int status);