musl-tcc/src/math/fdimf.c

11 lines
134 B
C
Raw Permalink Normal View History

2022-04-14 07:49:55 +00:00
#include <math.h>
float fdimf(float x, float y)
{
if (isnan(x))
return x;
if (isnan(y))
return y;
return x > y ? x - y : 0;
}