ReactOS  0.4.14-dev-98-gb0d4763
copysign.c File Reference
#include <precomp.h>
#include <internal/ieee.h>
Include dependency graph for copysign.c:

Go to the source code of this file.

Functions

double _copysign (double __d, double __s)
 

Function Documentation

◆ _copysign()

double _copysign ( double  __d,
double  __s 
)

Definition at line 17 of file copysign.c.

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 }
Definition: ieee.h:10
#define d
Definition: ke_i.h:81
GLdouble s
Definition: gl.h:2039