PowerPC: ifunc improvement for internal calls
[glibc.git] / math / w_exp2.c
blob02820be37327961e2896f0334c4b40f3123c3866
1 /*
2 * wrapper exp2(x)
3 */
5 #include <math.h>
6 #include <math_private.h>
8 double
9 __exp2 (double x)
11 double z = __ieee754_exp2 (x);
12 if (__builtin_expect (!__finite (z) || z == 0, 0)
13 && __finite (x) && _LIB_VERSION != _IEEE_)
14 /* exp2 overflow: 44, exp2 underflow: 45 */
15 return __kernel_standard (x, x, 44 + !!__signbit (x));
17 return z;
19 weak_alias (__exp2, exp2)
20 #ifdef NO_LONG_DOUBLE
21 strong_alias (__exp2, __exp2l)
22 weak_alias (__exp2, exp2l)
23 #endif