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
syslog: revert LOG_FAC/LOG_FACMASK changes
[musl.git]
/
src
/
math
/
fabsf.c
blob
4efc8d686dcc49e9c4d1c1af5159f042bf5a90d5
1
#include <math.h>
2
#include <stdint.h>
3
4
float
fabsf
(
float
x
)
5
{
6
union
{
float
f
;
uint32_t
i
;}
u
= {
x
};
7
u
.
i
&=
0x7fffffff
;
8
return
u
.
f
;
9
}