Back to index

glibc  2.9
Functions
s_logbl.c File Reference
#include "math.h"
#include "math_private.h"
#include <math_ldbl_opt.h>

Go to the source code of this file.

Functions

long double __logbl (long double x)
 long_double_symbol (libm, __logbl, logbl)

Function Documentation

long double __logbl ( long double  x)

Definition at line 33 of file s_logbl.c.

{
       int64_t lx,hx;
       GET_LDOUBLE_WORDS64(hx,lx,x);
       hx &= 0x7fffffffffffffffLL;        /* high |x| */
       if((hx|(lx&0x7fffffffffffffffLL))==0) return -1.0/fabs(x);
       if(hx>=0x7ff0000000000000LL) return x*x;
       if((hx>>=52)==0)                   /* IEEE 754 logb */
              return -1022.0;
       else
              return (long double) (hx-0x3ff);
}

Here is the call graph for this function:

long_double_symbol ( libm  ,
__logbl  ,
logbl   
)