Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
fabsf.c
Go to the documentation of this file.
1 #include <math.h>
2 #include <stdint.h>
3 
4 float fabsf(float x)
5 {
6  union
7  {
8  float f;
9  uint32_t i;
10  } u = {x};
11  u.i &= 0x7fffffff;
12  return u.f;
13 }
float fabsf(float x)
Definition: fabsf.c:4