]> git.ipfire.org Git - thirdparty/glibc.git/blame - math/w_exp2l.c
This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use...
[thirdparty/glibc.git] / math / w_exp2l.c
CommitLineData
650425ce
UD
1/*
2 * wrapper exp2l(x)
3 */
4
9d13fb24 5#include <math.h>
9277c064 6#include <math_private.h>
650425ce 7
650425ce 8long double
0ac5ae23 9__exp2l (long double x)
650425ce 10{
0cb7efc5 11 long double z = __ieee754_exp2l (x);
d81f90cc
WD
12 if (__builtin_expect (!isfinite (z) || z == 0, 0)
13 && isfinite (x) && _LIB_VERSION != _IEEE_)
0ac5ae23 14 /* exp2 overflow: 244, exp2 underflow: 245 */
d81f90cc 15 return __kernel_standard_l (x, x, 244 + !!signbit (x));
0ac5ae23 16
0cb7efc5 17 return z;
650425ce
UD
18}
19weak_alias (__exp2l, exp2l)