shithub: riscv

ref: 71a993b4ca2c455f491aad669e3a4ac2979f6bb8
dir: /sys/src/ape/lib/ap/gen/abs.c/

View raw version
#include <stdlib.h>

int
abs(int a)
{
	if(a < 0)
		return -a;
	return a;
}

long
labs(long a)
{
	if(a < 0)
		return -a;
	return a;
}