Fix some errors in declarations in the manual.
[glibc.git] / math / w_exp2f.c
blob7c277ef39080bd949658edb0adea984fd303ffda
1 /*
2 * wrapper exp2f(x)
3 */
5 #include <math.h>
6 #include <math_private.h>
8 float
9 __exp2f (float x)
11 float z = __ieee754_exp2f (x);
12 if (__builtin_expect (!__finitef (z), 0)
13 && __finitef (x) && _LIB_VERSION != _IEEE_)
14 /* exp2 overflow: 144, exp2 underflow: 145 */
15 return __kernel_standard_f (x, x, 144 + !!__signbitf (x));
17 return z;
19 weak_alias (__exp2f, exp2f)