shithub: riscv

ref: 9b68b426103ca0564d522d9918082125836a9f23
dir: /sys/src/ape/lib/ap/math/fmin.c/

View raw version
#include <math.h>

double
fmin(double a, double b)
{
	if(isNaN(a))
		return b;
	if(isNaN(b))
		return a;
	return a < b ? a : b;
}