ref: 361b65e4df0b4a3562a6e57b0f7b8009c59c3f2b dir: /sys/src/libc/port/abs.c/
#include <u.h> #include <libc.h> int abs(int a) { if(a < 0) return -a; return a; } long labs(long a) { if(a < 0) return -a; return a; }