#include "libm.h" #ifdef LONG_DOUBLE_IS_BINARY64 long double copysignl(long double x, long double y) { return copysign(x, y); } #elif defined(LONG_DOUBLE_IS_X87_EXTENDED) || defined(LONG_DOUBLE_IS_BINARY128) long double copysignl(long double x, long double y) { union ldshape ux = {x}, uy = {y}; ux.i.se &= 0x7fff; ux.i.se |= uy.i.se & 0x8000; return ux.f; } #endif