Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
math
/
fabs.c
blob: e8258cfdbcf1a751621a69bac02f0f0f9b22b1cf [
file
] [
log
] [
blame
]
#include
<math.h>
#include
<stdint.h>
double
fabs
(
double
x
)
{
union
{
double
f
;
uint64_t
i
;}
u
=
{
x
};
u
.
i
&=
-
1ULL
/
2
;
return
u
.
f
;
}