Back to index

glibc  2.9
Functions
s_isnanl.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

int __isnanl (long double x)

Function Documentation

int __isnanl ( long double  x)

Definition at line 31 of file s_isnanl.c.

{
       int64_t hx,lx;
       GET_LDOUBLE_WORDS64(hx,lx,x);
       hx &= 0x7fffffffffffffffLL;
       hx |= (u_int64_t)(lx|(-lx))>>63;
       hx = 0x7fff000000000000LL - hx;
       return (int)((u_int64_t)hx>>63);
}