SDL  2.0
s_copysign.c File Reference
#include "math_libm.h"
#include "math_private.h"
+ Include dependency graph for s_copysign.c:

Go to the source code of this file.

Functions

double copysign (double x, double y)

Function Documentation

double copysign ( double  x,
double  y 
)

Definition at line 21 of file s_copysign.c.

References GET_HIGH_WORD, and SET_HIGH_WORD.

Referenced by scalbln(), and SDL_copysign().

{
u_int32_t hx,hy;
SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
return x;
}