loongarch64: add new syscall numbers
[musl.git] / src / math / fmaxf.c
blob695d8179c6c1c314a1bcd92d0696a7cd2131707e
1 #include <math.h>
3 float fmaxf(float x, float y)
5 if (isnan(x))
6 return y;
7 if (isnan(y))
8 return x;
9 /* handle signed zeroes, see C99 Annex F.9.9.2 */
10 if (signbit(x) != signbit(y))
11 return signbit(x) ? y : x;
12 return x < y ? y : x;