shithub: riscv

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