2007-03-14 20:24:57 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
2015-09-19 13:50:57 +00:00
|
|
|
* FILE: lib/sdk/crt/float/copysign.c
|
2007-03-14 20:24:57 +00:00
|
|
|
* PURPOSE: Unknown
|
|
|
|
* PROGRAMER: Unknown
|
|
|
|
* UPDATE HISTORY:
|
|
|
|
* 25/11/05: Added license header
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <precomp.h>
|
|
|
|
#include <internal/ieee.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
double _copysign (double __d, double __s)
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{
|
|
|
|
double* __d;
|
2010-03-26 23:41:53 +00:00
|
|
|
double_s* d;
|
2007-03-14 20:24:57 +00:00
|
|
|
} d;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
double* __s;
|
2010-03-26 23:41:53 +00:00
|
|
|
double_s* s;
|
2007-03-14 20:24:57 +00:00
|
|
|
} s;
|
|
|
|
d.__d = &__d;
|
|
|
|
s.__s = &__s;
|
|
|
|
|
|
|
|
d.d->sign = s.s->sign;
|
|
|
|
|
|
|
|
return __d;
|
|
|
|
}
|
|
|
|
|