shithub: riscv

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