git: 9front

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