Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
math
/
fdim.c
blob: 1eb169e3e53336a5a10e59af97f7cdd57c11e5c8 [
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
;
}