1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 #include <math.h> 7 8 typedef union ui_f { 9 float f; 10 unsigned int ui; 11 } ui_f; 12 copysignf(float aX,float aY)13float copysignf(float aX, float aY) 14 { 15 ui_f x,y; 16 x.f=aX; y.f=aY; 17 x.ui= (x.ui & 0x7fffffff) | (y.ui & 0x80000000); 18 return x.f; 19 } 20