shithub: riscv

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