source:
azure_iot_hub/trunk/musl-1.1.18/src/math/fabsf.c@
388
Last change on this file since 388 was 388, checked in by , 5 years ago | |
---|---|
|
|
File size: 136 bytes |
Rev | Line | |
---|---|---|
[388] | 1 | #include <math.h> |
2 | #include <stdint.h> | |
3 | ||
4 | float fabsf(float x) | |
5 | { | |
6 | union {float f; uint32_t i;} u = {x}; | |
7 | u.i &= 0x7fffffff; | |
8 | return u.f; | |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.