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/chgsign.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 _chgsign( double __x )
|
|
|
|
{
|
|
|
|
union
|
|
|
|
{
|
|
|
|
double* __x;
|
2010-03-26 23:41:53 +00:00
|
|
|
double_s *x;
|
2007-03-14 20:24:57 +00:00
|
|
|
} u;
|
|
|
|
u.__x = &__x;
|
|
|
|
|
|
|
|
if ( u.x->sign == 1 )
|
|
|
|
u.x->sign = 0;
|
|
|
|
else
|
|
|
|
u.x->sign = 1;
|
|
|
|
|
|
|
|
return __x;
|
|
|
|
}
|