shithub: riscv

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