projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
cda3022e9b877489d37babe933b7799ead059efa
[musl]
/
src
/
math
/
fdiml.c
1
#include "libm.h"
2
3
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
4
long double fdiml(long double x, long double y)
5
{
6
return fdim(x, y);
7
}
8
#else
9
long double fdiml(long double x, long double y)
10
{
11
if (isnan(x))
12
return x;
13
if (isnan(y))
14
return y;
15
return x > y ? x - y : 0;
16
}
17
#endif