ReactOS  0.4.14-dev-55-g2da92ac
copysign.c
Go to the documentation of this file.
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  */
17 double _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 
Definition: ieee.h:10
double _copysign(double __d, double __s)
Definition: copysign.c:17
#define d
Definition: ke_i.h:81
GLdouble s
Definition: gl.h:2039