1 2 3 4 5 6 7 8 9
#include <types.h> #include <libk/math.h> int64_t abs(int64_t val) { if (val < 0) return -val; return val; }