Back to index

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

Go to the source code of this file.

Functions

float __log10f (float x)

Function Documentation

float __log10f ( float  x)

Definition at line 31 of file w_log10f.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_log10f(x);
#else
       float z;
       z = __ieee754_log10f(x);
       if(_LIB_VERSION == _IEEE_ || __isnanf(x)) return z;
       if(x<=(float)0.0) {
           if(x==(float)0.0)
               /* log10(0) */
               return (float)__kernel_standard((double)x,(double)x,118);
           else 
               /* log10(x<0) */
               return (float)__kernel_standard((double)x,(double)x,119);
       } else
           return z;
#endif
}

Here is the call graph for this function: