shithub: riscv

ref: 3bb0b9f4ea46431189b2cae2a6c2887f786d822a
dir: /sys/src/libc/port/fabs.c/

View raw version
#include <u.h>
#include <libc.h>

double
fabs(double arg)
{

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