Back to index

glibc  2.9
w_scalbf.c File Reference
#include <math.h>
#include "math_private.h"
#include <errno.h>

Go to the source code of this file.


float __scalbf (float x, float fn)

Function Documentation

float __scalbf ( float  x,
float  fn 

Definition at line 38 of file w_scalbf.c.

#ifdef _IEEE_LIBM
       return __ieee754_scalbf(x,fn);
       float z;
       z = __ieee754_scalbf(x,fn);
       if(_LIB_VERSION != _SVID_) return z;
       if(!(__finitef(z)||__isnanf(z))&&__finitef(x)) {
           /* scalbf overflow */
           return (float)__kernel_standard((double)x,(double)fn,132);
       if(z==(float)0.0&&z!=x) {
           /* scalbf underflow */
           return (float)__kernel_standard((double)x,(double)fn,133);
#ifndef _SCALB_INT
       if(!__finitef(fn)) __set_errno (ERANGE);
       return z;

Here is the call graph for this function: