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