Back to index

glibc  2.9
Functions
s_copysignl.c File Reference
#include "math.h"
#include "math_private.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

long double __copysignl (long double x, long double y)

Function Documentation

long double __copysignl ( long double  x,
long double  y 
)

Definition at line 32 of file s_copysignl.c.

{
       u_int64_t hx,hy;
       GET_LDOUBLE_MSW64(hx,x);
       GET_LDOUBLE_MSW64(hy,y);
       SET_LDOUBLE_MSW64(x,(hx&0x7fffffffffffffffULL)
                         |(hy&0x8000000000000000ULL));
        return x;
}