]> git.ipfire.org Git - thirdparty/glibc.git/blob - math/w_exp2f_compat.c
Fix MicroBlaze bits/setjmp.h for C++.
[thirdparty/glibc.git] / math / w_exp2f_compat.c
1 /*
2 * wrapper exp2f(x)
3 */
4
5 #include <math.h>
6 #include <math_private.h>
7
8 float
9 __exp2f (float x)
10 {
11 float z = __ieee754_exp2f (x);
12 if (__builtin_expect (!isfinite (z) || z == 0, 0)
13 && isfinite (x) && _LIB_VERSION != _IEEE_)
14 /* exp2 overflow: 144, exp2 underflow: 145 */
15 return __kernel_standard_f (x, x, 144 + !!signbit (x));
16
17 return z;
18 }
19 weak_alias (__exp2f, exp2f)