shithub: riscv

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