Sign in
cobalt
/
cobalt
/
97b64f26fb12c9eab352139c26f0b01d1cb6d0b9
/
.
/
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
;
}