Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
math
/
fdim.c
blob: 958546064389bfa3bb5bb2fc16b728726b3ea1f6 [
file
] [
log
] [
blame
]
#include
<math.h>
double
fdim
(
double
x
,
double
y
)
{
if
(
isnan
(
x
))
return
x
;
if
(
isnan
(
y
))
return
y
;
return
x
>
y
?
x
-
y
:
0
;
}