Back to index

lightning-sunbird  0.9+nobinonly
w_scalb.c File Reference
#include "fdlibm.h"
#include <errno.h>

Go to the source code of this file.


double fd_scalb (double x, double fn)

Function Documentation

double fd_scalb ( double  x,
double  fn 

Definition at line 69 of file w_scalb.c.

#ifdef _IEEE_LIBM
       return __ieee754_scalb(x,fn);
       double z;
    int err;
       z = __ieee754_scalb(x,fn);
       if(_LIB_VERSION == _IEEE_) return z;
       if(!(fd_finite(z)||fd_isnan(z))&&fd_finite(x)) {
           return __kernel_standard(x,(double)fn,32,&err); /* scalb overflow */
       if(z==0.0&&z!=x) {
           return __kernel_standard(x,(double)fn,33,&err); /* scalb underflow */
#ifndef _SCALB_INT
       if(!fd_finite(fn)) errno = ERANGE;
       return z;

Here is the call graph for this function: