Back to index

glibc  2.9
Functions | Variables
w_exp2.c File Reference
#include <float.h>
#include <math.h>
#include "math_private.h"

Go to the source code of this file.


double __exp2 (double x)


static const double o_threshold = (double) DBL_MAX_EXP
static const double u_threshold = (double) (DBL_MIN_EXP - DBL_MANT_DIG - 1)

Function Documentation

double __exp2 ( double  x)

Definition at line 13 of file w_exp2.c.

#ifdef _IEEE_LIBM
  return __ieee754_exp2 (x);
  double z;
  z = __ieee754_exp2 (x);
  if (_LIB_VERSION != _IEEE_ && __finite (x))
      if (x > o_threshold)
       /* exp2 overflow */
       return __kernel_standard (x, x, 44);
      else if (x <= u_threshold)
       /* exp2 underflow */
       return __kernel_standard (x, x, 45);
  return z;

Here is the call graph for this function:

Variable Documentation

const double o_threshold = (double) DBL_MAX_EXP [static]

Definition at line 9 of file w_exp2.c.

const double u_threshold = (double) (DBL_MIN_EXP - DBL_MANT_DIG - 1) [static]

Definition at line 10 of file w_exp2.c.