Back to index

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

Go to the source code of this file.

Functions

double fd_log (double x)

Function Documentation

double fd_log ( double  x)

Definition at line 62 of file w_log.c.

{
#ifdef _IEEE_LIBM
       return __ieee754_log(x);
#else
       double z;
    int err;
       z = __ieee754_log(x);
       if(_LIB_VERSION == _IEEE_ || fd_isnan(x) || x > 0.0) return z;
       if(x==0.0)
           return __kernel_standard(x,x,16,&err); /* log(0) */
       else 
           return __kernel_standard(x,x,17,&err); /* log(x<0) */
#endif
}

Here is the call graph for this function:

Here is the caller graph for this function: