1/*
2 * wrapper exp2(x)
3 */
4
5#include <math.h>
6#include <math_private.h>
7
8double
9__exp2 (double x)
10{
11 double z = __ieee754_exp2 (x);
12 if (__builtin_expect (!isfinite (z) || z == 0, 0)
13 && isfinite (x) && _LIB_VERSION != _IEEE_)
14 /* exp2 overflow: 44, exp2 underflow: 45 */
15 return __kernel_standard (x, x, 44 + !!signbit (x));
16
17 return z;
18}
19weak_alias (__exp2, exp2)
20#ifdef NO_LONG_DOUBLE
21strong_alias (__exp2, __exp2l)
22weak_alias (__exp2, exp2l)
23#endif
24