yggdrasil/libm/s_fabsf.c

13 lines
157 B
C

#include <stdint.h>
#include "private.h"
float
fabsf(float x)
{
uint32_t ix;
GET_FLOAT_WORD(ix,x);
SET_FLOAT_WORD(x,ix&0x7fffffff);
return x;
}