Back to index

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

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 33 of file s_logbl.c.

{
       int32_t es,lx,ix;
       GET_LDOUBLE_WORDS(es,ix,lx,x);
       es &= 0x7fff;                      /* exponent */
       if((es|ix|lx)==0) return -1.0/fabs(x);
       if(es==0x7fff) return x*x;
       if(es==0)                   /* IEEE 754 logb */
              return -16382.0;
       else
              return (long double) (es-0x3fff);
}

Here is the call graph for this function: