1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS system libraries 4 * FILE: lib/sdk/crt/float/copysign.c 5 * PURPOSE: Unknown 6 * PROGRAMER: Unknown 7 * UPDATE HISTORY: 8 * 25/11/05: Added license header 9 */ 10 11 #include <precomp.h> 12 #include <internal/ieee.h> 13 14 /* 15 * @implemented 16 */ _copysign(double __d,double __s)17double _copysign (double __d, double __s) 18 { 19 union 20 { 21 double* __d; 22 double_s* d; 23 } d; 24 union 25 { 26 double* __s; 27 double_s* s; 28 } s; 29 d.__d = &__d; 30 s.__s = &__s; 31 32 d.d->sign = s.s->sign; 33 34 return __d; 35 } 36 37