repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl.git]
/
src
/
math
/
fdiml.c
blob
62e29b7df39e1cb25e73b844cbb98e423bf87d26
1
#include <math.h>
2
#include <float.h>
3
4
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
5
long double
fdiml
(
long double
x
,
long double
y
)
6
{
7
return
fdim
(
x
,
y
);
8
}
9
#else
10
long double
fdiml
(
long double
x
,
long double
y
)
11
{
12
if
(
isnan
(
x
))
13
return
x
;
14
if
(
isnan
(
y
))
15
return
y
;
16
return
x
>
y
?
x
-
y
:
0
;
17
}
18
#endif