helos1/extlib/pdlibc/abs.c
Edgaru089 98f92a9958 makefile: move pdlibc to extlib, add C++ stub standard headers
It now kind of compiles with x86_64-elf gcc (does not link though)
2021-11-04 20:15:58 +08:00

10 lines
92 B
C

#include <stdint.h>
int abs(int val) {
if (val < 0)
return -val;
else
return val;
}