source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/math/fabs.c@
351
Last change on this file since 351 was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 135 bytes |
Line | |
---|---|
1 | #include <math.h> |
2 | #include <stdint.h> |
3 | |
4 | double fabs(double x) |
5 | { |
6 | union {double f; uint64_t i;} u = {x}; |
7 | u.i &= -1ULL/2; |
8 | return u.f; |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.