x86_64: Replace AVX512F .byte sequences with instructions
[glibc.git] / math / w_exp2f_compat.c
blobb21fe36903a875b6a5e3cd56a02e40948fc1a427
1 /*
2 * wrapper exp2f(x)
3 */
5 #include <math.h>
6 #include <math_private.h>
7 #include <math-svid-compat.h>
9 float
10 __exp2f (float x)
12 float z = __ieee754_exp2f (x);
13 if (__builtin_expect (!isfinite (z) || z == 0, 0)
14 && isfinite (x) && _LIB_VERSION != _IEEE_)
15 /* exp2 overflow: 144, exp2 underflow: 145 */
16 return __kernel_standard_f (x, x, 144 + !!signbit (x));
18 return z;
20 weak_alias (__exp2f, exp2f)