Sign in
fuchsia
/
zircon
/
/
13ee3dc5e4c46bf127977ad28645c47442ec517d
/
.
/
third_party
/
ulib
/
musl
/
src
/
math
/
fdim.c
blob: b196f50cf375d06eb6653b3c2099440c571a8852 [
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
;
}