shithub: riscv

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