1234567891011121314151617181920212223242526272829303132333435363738 |
- #include <math.h>
- #include "math_private.h"
- double
- exp (double x)
- {
- #if defined(__UCLIBC_HAS_FENV__)
- double z = __ieee754_exp (x);
- if (__builtin_expect (!isfinite (z) || z == 0, 0)
- && isfinite (x) && _LIB_VERSION != _IEEE_)
- return __kernel_standard (x, x, 6 + !!signbit (x));
- return z;
- #else
- return __ieee754_exp (x);
- #endif
- }
- libm_hidden_def(exp)
|