Fix tests that are testing obsoleted functionality
[glibc.git] / math / w_exp2l_compat.c
blob04cd666b68448b6e10d2debaa51d9a5a21f77e52
1 /*
2 * wrapper exp2l(x)
3 */
5 #include <math.h>
6 #include <math_private.h>
7 #include <math-svid-compat.h>
9 long double
10 __exp2l (long double x)
12 long double z = __ieee754_exp2l (x);
13 if (__builtin_expect (!isfinite (z) || z == 0, 0)
14 && isfinite (x) && _LIB_VERSION != _IEEE_)
15 /* exp2 overflow: 244, exp2 underflow: 245 */
16 return __kernel_standard_l (x, x, 244 + !!signbit (x));
18 return z;
20 weak_alias (__exp2l, exp2l)