This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use...
[glibc.git] / sysdeps / ieee754 / ldbl-128ibm / w_expl.c
blobfb5c8d36296562f6d2c5c31a1225b517cc2aad27
1 #include <math.h>
2 #include <math_private.h>
3 #include <math_ldbl_opt.h>
5 static const long double o_thres = 709.78271289338399678773454114191496482L;
6 static const long double u_thres = -744.44007192138126231410729844608163411L;
8 long double __expl(long double x) /* wrapper exp */
10 long double z;
11 z = __ieee754_expl(x);
12 if (_LIB_VERSION == _IEEE_)
13 return z;
14 if (isfinite(x))
16 if (x >= o_thres)
17 return __kernel_standard_l(x,x,206); /* exp overflow */
18 else if (x <= u_thres)
19 return __kernel_standard_l(x,x,207); /* exp underflow */
21 return z;
23 hidden_def (__expl)
24 long_double_symbol (libm, __expl, expl);