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;
}