musl - an implementation of the standard library for Linux-based systems
blob: 543c3648e3ff22e861479ea011a2e2e8c2077d99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#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;
}
|