Merge to trunk head (r46631)
[reactos.git] / lib / sdk / crt / float / chgsign.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crt/??????
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Added license header
9 */
10
11 #include <precomp.h>
12
13 #include <internal/ieee.h>
14
15 /*
16 * @implemented
17 */
18 double _chgsign( double __x )
19 {
20 union
21 {
22 double* __x;
23 double_s *x;
24 } u;
25 u.__x = &__x;
26
27 if ( u.x->sign == 1 )
28 u.x->sign = 0;
29 else
30 u.x->sign = 1;
31
32 return __x;
33 }