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