Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
math
/
fabsf.c
blob: 4efc8d686dcc49e9c4d1c1af5159f042bf5a90d5 [
file
] [
log
] [
blame
]
#include
<math.h>
#include
<stdint.h>
float
fabsf
(
float
x
)
{
union
{
float
f
;
uint32_t
i
;}
u
=
{
x
};
u
.
i
&=
0x7fffffff
;
return
u
.
f
;
}