repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remove LFS64 symbol aliases; replace with dynamic linker remapping
[musl.git]
/
src
/
math
/
fabs.c
blob
e8258cfdbcf1a751621a69bac02f0f0f9b22b1cf
1
#include <math.h>
2
#include <stdint.h>
3
4
double
fabs
(
double
x
)
5
{
6
union
{
double
f
;
uint64_t
i
;}
u
= {
x
};
7
u
.
i
&= -
1ULL
/
2
;
8
return
u
.
f
;
9
}