fix struct layout mismatch in sound ioctl time32 fallback conversion
[musl.git] / src / math / fabsf.c
blob4efc8d686dcc49e9c4d1c1af5159f042bf5a90d5
1 #include <math.h>
2 #include <stdint.h>
4 float fabsf(float x)
6 union {float f; uint32_t i;} u = {x};
7 u.i &= 0x7fffffff;
8 return u.f;