Blame math/w_exp2l_compat.c

Packit 6c4009
/*
Packit 6c4009
 * wrapper exp2l(x)
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#include <math.h>
Packit 6c4009
#include <math_private.h>
Packit 6c4009
#include <math-svid-compat.h>
Packit 6c4009
#include <libm-alias-ldouble.h>
Packit 6c4009
Packit 6c4009
#if LIBM_SVID_COMPAT
Packit 6c4009
long double
Packit 6c4009
__exp2l (long double x)
Packit 6c4009
{
Packit 6c4009
  long double z = __ieee754_exp2l (x);
Packit 6c4009
  if (__builtin_expect (!isfinite (z) || z == 0, 0)
Packit 6c4009
      && isfinite (x) && _LIB_VERSION != _IEEE_)
Packit 6c4009
    /* exp2 overflow: 244, exp2 underflow: 245 */
Packit 6c4009
    return __kernel_standard_l (x, x, 244 + !!signbit (x));
Packit 6c4009
Packit 6c4009
  return z;
Packit 6c4009
}
Packit 6c4009
libm_alias_ldouble (__exp2, exp2)
Packit 6c4009
#endif