1234567891011121314151617181920212223242526272829 |
- #include "math.h"
- #include "math_private.h"
- double copysign(double x, double y)
- {
- u_int32_t hx,hy;
- GET_HIGH_WORD(hx,x);
- GET_HIGH_WORD(hy,y);
- SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
- return x;
- }
- libm_hidden_def(copysign)
|