git: 9front

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