Back to index

lightning-sunbird  0.9+nobinonly
Functions
w_log10.c File Reference
#include "fdlibm.h"

Go to the source code of this file.

Functions

double fd_log10 (double x)

Function Documentation

double fd_log10 ( double  x)

Definition at line 62 of file w_log10.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_log10(x);
#else
       double z;
       z = __ieee754_log10(x);
       if(_LIB_VERSION == _IEEE_ || fd_isnan(x)) return z;
       if(x<=0.0) {
        int err;
           if(x==0.0)
               return __kernel_standard(x,x,18,&err); /* log10(0) */
           else 
               return __kernel_standard(x,x,19,&err); /* log10(x<0) */
       } else
           return z;
#endif
}

Here is the call graph for this function: