Back to index

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

Go to the source code of this file.


float __exp2f (float x)


static const float o_threshold = (float) FLT_MAX_EXP
static const float u_threshold = (float) (FLT_MIN_EXP - FLT_MANT_DIG - 1)

Function Documentation

float __exp2f ( float  x)

Definition at line 13 of file w_exp2f.c.

#ifdef _IEEE_LIBM
  return __ieee754_exp2f (x);
  float z;
  z = __ieee754_exp2f (x);
  if (_LIB_VERSION != _IEEE_ && __finitef (x))
      if (x > o_threshold)
       /* exp2 overflow */
       return (float) __kernel_standard ((double) x, (double) x, 144);
      else if (x <= u_threshold)
       /* exp2 underflow */
       return (float) __kernel_standard ((double) x, (double) x, 145);
  return z;

Here is the call graph for this function:

Variable Documentation

const float o_threshold = (float) FLT_MAX_EXP [static]

Definition at line 9 of file w_exp2f.c.

const float u_threshold = (float) (FLT_MIN_EXP - FLT_MANT_DIG - 1) [static]

Definition at line 10 of file w_exp2f.c.