shithub: riscv

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