hurd: Fix pwritev*
[glibc.git] / math / w_exp2f_compat.c
blob6ab6f6c6de84e60509983da83c4832dc57a77c40
1 /*
2 * wrapper exp2f(x)
3 */
5 #include <math.h>
6 #include <math_private.h>
7 #include <math-svid-compat.h>
9 #if LIBM_SVID_COMPAT && SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)
10 float
11 __exp2f_compat (float x)
13 float z = __ieee754_exp2f (x);
14 if (__builtin_expect (!isfinite (z) || z == 0, 0)
15 && isfinite (x) && _LIB_VERSION != _IEEE_)
16 /* exp2 overflow: 144, exp2 underflow: 145 */
17 return __kernel_standard_f (x, x, 144 + !!signbit (x));
19 return z;
21 compat_symbol (libm, __exp2f_compat, exp2f, GLIBC_2_1);
22 #endif