shithub: riscv

ref: 5c96a51f3a0684765afd24930d2df7a899c22d70
dir: /sys/src/ape/lib/ap/math/fabs.c/

View raw version
#include <math.h>

double
fabs(double arg)
{

	if(arg < 0)
		return -arg;
	return arg;
}