Back to index

glibc  2.9
w_scalb.c File Reference
#include <math.h>
#include "math_private.h"
#include <errno.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


double __scalb (double x, double fn)

Function Documentation

double __scalb ( double  x,
double  fn 

Definition at line 35 of file w_scalb.c.

#ifdef _IEEE_LIBM
       return __ieee754_scalb(x,fn);
       double z;
       z = __ieee754_scalb(x,fn);
       if(_LIB_VERSION != _SVID_) return z;
       if(!(__finite(z)||__isnan(z))&&__finite(x)) {
           return __kernel_standard(x,(double)fn,32); /* scalb overflow */
       if(z==0.0&&z!=x) {
           return __kernel_standard(x,(double)fn,33); /* scalb underflow */
#ifndef _SCALB_INT
       if(!__finite(fn)) __set_errno (ERANGE);
       return z;

Here is the call graph for this function: