Back to index

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

Go to the source code of this file.

Functions

float __logf (float x)

Function Documentation

float __logf ( float  x)

Definition at line 31 of file w_logf.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_logf(x);
#else
       float z;
       z = __ieee754_logf(x);
       if(_LIB_VERSION == _IEEE_ || __isnanf(x) || x > (float)0.0) return z;
       if(x==(float)0.0)
           /* logf(0) */
           return (float)__kernel_standard((double)x,(double)x,116);
       else 
           /* logf(x<0) */
           return (float)__kernel_standard((double)x,(double)x,117);
#endif
}

Here is the call graph for this function: