blob: cf079ad770dc27669212a865c3f231ddd233b73c [file] [log] [blame]
Mark Dickinsonf3718592009-12-21 15:27:41 +00001double _Py_acosh(double x);
2double _Py_asinh(double x);
3double _Py_atanh(double x);
Mark Dickinson664b5112009-12-16 20:23:42 +00004double _Py_expm1(double x);
Mark Dickinsonf3718592009-12-21 15:27:41 +00005double _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 Dickinson664b5112009-12-16 20:23:42 +000030
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 Dickinsonf3718592009-12-21 15:27:41 +000038
Mark Dickinson05d79e92012-08-18 12:24:30 +010039/* Use the substitute from _math.c on all platforms:
40 it includes workarounds for buggy handling of zeros. */
Mark Dickinsonf3718592009-12-21 15:27:41 +000041#define m_log1p _Py_log1p