shithub: riscv

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