2007-03-14 20:24:57 +00:00
|
|
|
/*
|
|
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
|
|
* PROJECT: ReactOS system libraries
|
|
|
|
* FILE: lib/crt/??????
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|