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