]>
Commit | Line | Data |
---|---|---|
e42a38dd AZ |
1 | #include <math.h> |
2 | #include <math_private.h> | |
813378e9 | 3 | #include <math-svid-compat.h> |
f964490f | 4 | #include <math_ldbl_opt.h> |
e42a38dd | 5 | |
e42a38dd AZ |
6 | long double __expl(long double x) /* wrapper exp */ |
7 | { | |
8 | long double z; | |
9 | z = __ieee754_expl(x); | |
10 | if (_LIB_VERSION == _IEEE_) | |
11 | return z; | |
d81f90cc | 12 | if (isfinite(x)) |
e42a38dd | 13 | { |
6c9678eb | 14 | if (!isfinite (z)) |
e42a38dd | 15 | return __kernel_standard_l(x,x,206); /* exp overflow */ |
6c9678eb | 16 | else if (z == 0.0L) |
e42a38dd AZ |
17 | return __kernel_standard_l(x,x,207); /* exp underflow */ |
18 | } | |
19 | return z; | |
20 | } | |
21 | hidden_def (__expl) | |
f964490f | 22 | long_double_symbol (libm, __expl, expl); |