ref: 1d0f8a7e512e5abfea9c5d2fdf2fb4c05efc720b 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; }