Sign in
mojo
/
mojo-tools
/
17e3b04429ce6ad836128e1ceffefd85493ec779
/
.
/
fusl
/
src
/
math
/
fabsf.c
blob: 55c8b296d4d7357bc6f622ff5358093b650c55c7 [
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
;
}