blob: 47aed3cb830f325e4241892285225465809b8267 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*
2 * wrapper exp2l(x)
3 */
4
5#include <math.h>
6#include <math_private.h>
7
8long double
9__exp2l (long double x)
10{
11 long double z = __ieee754_exp2l (x);
12 if (__builtin_expect (!isfinite (z) || z == 0, 0)
13 && isfinite (x) && _LIB_VERSION != _IEEE_)
14 /* exp2 overflow: 244, exp2 underflow: 245 */
15 return __kernel_standard_l (x, x, 244 + !!signbit (x));
16
17 return z;
18}
19weak_alias (__exp2l, exp2l)