shithub: riscv

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