blob: 2226b519b8bc7fe442098f43ff1607de87ce15f1 [file] [log] [blame]
#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;
}