Back to index

glibc  2.9
Functions
s_logbl.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 __logbl (long double x)

Function Documentation

long double __logbl ( long double  x)

Definition at line 32 of file s_logbl.c.

{
       int64_t lx,hx;
       GET_LDOUBLE_WORDS64(hx,lx,x);
       hx &= 0x7fffffffffffffffLL;        /* high |x| */
       if((hx|lx)==0) return -1.0/fabs(x);
       if(hx>=0x7fff000000000000LL) return x*x;
       if((hx>>=48)==0)                   /* IEEE 754 logb */
              return -16382.0;
       else
              return (long double) (hx-0x3fff);
}

Here is the call graph for this function: