xref: /aosp_15_r20/external/musl/src/math/fdimf.c (revision c9945492fdd68bbe62686c5b452b4dc1be3f8453)
1 #include <math.h>
2 
fdimf(float x,float y)3 float fdimf(float x, float y)
4 {
5 	if (isnan(x))
6 		return x;
7 	if (isnan(y))
8 		return y;
9 	return x > y ? x - y : 0;
10 }
11