Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 1 | #ifdef HAVE_ACOSH |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 2 | # define m_acosh acosh |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 3 | #else |
| 4 | /* if the system doesn't have acosh, use the substitute |
| 5 | function defined in Modules/_math.c. */ |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 6 | double _Py_acosh(double x); |
| 7 | # define m_acosh _Py_acosh |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 8 | #endif |
| 9 | |
| 10 | #ifdef HAVE_ASINH |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 11 | # define m_asinh asinh |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 12 | #else |
| 13 | /* if the system doesn't have asinh, use the substitute |
| 14 | function defined in Modules/_math.c. */ |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 15 | double _Py_asinh(double x); |
| 16 | # define m_asinh _Py_asinh |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #ifdef HAVE_ATANH |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 20 | # define m_atanh atanh |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 21 | #else |
| 22 | /* if the system doesn't have atanh, use the substitute |
| 23 | function defined in Modules/_math.c. */ |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 24 | double _Py_atanh(double x); |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 25 | #define m_atanh _Py_atanh |
| 26 | #endif |
Mark Dickinson | 664b511 | 2009-12-16 20:23:42 +0000 | [diff] [blame] | 27 | |
| 28 | #ifdef HAVE_EXPM1 |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 29 | # define m_expm1 expm1 |
Mark Dickinson | 664b511 | 2009-12-16 20:23:42 +0000 | [diff] [blame] | 30 | #else |
| 31 | /* if the system doesn't have expm1, use the substitute |
| 32 | function defined in Modules/_math.c. */ |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 33 | double _Py_expm1(double x); |
Mark Dickinson | 664b511 | 2009-12-16 20:23:42 +0000 | [diff] [blame] | 34 | #define m_expm1 _Py_expm1 |
| 35 | #endif |
Mark Dickinson | f371859 | 2009-12-21 15:27:41 +0000 | [diff] [blame] | 36 | |
Victor Stinner | bf96558 | 2016-10-18 16:29:27 +0200 | [diff] [blame] | 37 | double _Py_log1p(double x); |
| 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 |