shithub: riscv

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