Back to index

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

Go to the source code of this file.

Functions

float __logbf (float x)

Function Documentation

float __logbf ( float  x)

Definition at line 26 of file s_logbf.c.

{
       int32_t ix;
       GET_FLOAT_WORD(ix,x);
       ix &= 0x7fffffff;                  /* high |x| */
       if(ix==0) return (float)-1.0/fabsf(x);
       if(ix>=0x7f800000) return x*x;
       if((ix>>=23)==0)                   /* IEEE 754 logb */
              return -126.0; 
       else
              return (float) (ix-127); 
}

Here is the call graph for this function: