Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 1 | double _Py_acosh(double x); |
| 2 | double _Py_asinh(double x); |
| 3 | double _Py_atanh(double x); |
Mark Dickinson | 664b511 | 2009-12-16 20:23:42 +0000 | [diff] [blame] | 4 | double _Py_expm1(double x); |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 5 | double _Py_log1p(double x); |
| 6 | |
| 7 | #ifdef HAVE_ACOSH |
| 8 | #define m_acosh acosh |
| 9 | #else |
| 10 | /* if the system doesn't have acosh, use the substitute |
| 11 | function defined in Modules/_math.c. */ |
| 12 | #define m_acosh _Py_acosh |
| 13 | #endif |
| 14 | |
| 15 | #ifdef HAVE_ASINH |
| 16 | #define m_asinh asinh |
| 17 | #else |
| 18 | /* if the system doesn't have asinh, use the substitute |
| 19 | function defined in Modules/_math.c. */ |
| 20 | #define m_asinh _Py_asinh |
| 21 | #endif |
| 22 | |
| 23 | #ifdef HAVE_ATANH |
| 24 | #define m_atanh atanh |
| 25 | #else |
| 26 | /* if the system doesn't have atanh, use the substitute |
| 27 | function defined in Modules/_math.c. */ |
| 28 | #define m_atanh _Py_atanh |
| 29 | #endif |
Mark Dickinson | 664b511 | 2009-12-16 20:23:42 +0000 | [diff] [blame] | 30 | |
| 31 | #ifdef HAVE_EXPM1 |
| 32 | #define m_expm1 expm1 |
| 33 | #else |
| 34 | /* if the system doesn't have expm1, use the substitute |
| 35 | function defined in Modules/_math.c. */ |
| 36 | #define m_expm1 _Py_expm1 |
| 37 | #endif |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 38 | |
Mark Dickinson | 05d79e9 | 2012-08-18 12:24:30 +0100 | [diff] [blame] | 39 | /* Use the substitute from _math.c on all platforms: |
| 40 | it includes workarounds for buggy handling of zeros. */ |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 41 | #define m_log1p _Py_log1p |