blob: 398b7e8874af00bc52a3ba6e02ec1d4ba988bb70 [file] [log] [blame]
Mark Dickinsonf3718592009-12-21 15:27:41 +00001#ifdef HAVE_ACOSH
Victor Stinnerbf965582016-10-18 16:29:27 +02002# define m_acosh acosh
Mark Dickinsonf3718592009-12-21 15:27:41 +00003#else
4/* if the system doesn't have acosh, use the substitute
5 function defined in Modules/_math.c. */
Victor Stinnerbf965582016-10-18 16:29:27 +02006double _Py_acosh(double x);
7# define m_acosh _Py_acosh
Mark Dickinsonf3718592009-12-21 15:27:41 +00008#endif
9
10#ifdef HAVE_ASINH
Victor Stinnerbf965582016-10-18 16:29:27 +020011# define m_asinh asinh
Mark Dickinsonf3718592009-12-21 15:27:41 +000012#else
13/* if the system doesn't have asinh, use the substitute
14 function defined in Modules/_math.c. */
Victor Stinnerbf965582016-10-18 16:29:27 +020015double _Py_asinh(double x);
16# define m_asinh _Py_asinh
Mark Dickinsonf3718592009-12-21 15:27:41 +000017#endif
18
19#ifdef HAVE_ATANH
Victor Stinnerbf965582016-10-18 16:29:27 +020020# define m_atanh atanh
Mark Dickinsonf3718592009-12-21 15:27:41 +000021#else
22/* if the system doesn't have atanh, use the substitute
23 function defined in Modules/_math.c. */
Victor Stinnerbf965582016-10-18 16:29:27 +020024double _Py_atanh(double x);
Mark Dickinsonf3718592009-12-21 15:27:41 +000025#define m_atanh _Py_atanh
26#endif
Mark Dickinson664b5112009-12-16 20:23:42 +000027
28#ifdef HAVE_EXPM1
Victor Stinnerbf965582016-10-18 16:29:27 +020029# define m_expm1 expm1
Mark Dickinson664b5112009-12-16 20:23:42 +000030#else
31/* if the system doesn't have expm1, use the substitute
32 function defined in Modules/_math.c. */
Victor Stinnerbf965582016-10-18 16:29:27 +020033double _Py_expm1(double x);
Mark Dickinson664b5112009-12-16 20:23:42 +000034#define m_expm1 _Py_expm1
35#endif
Mark Dickinsonf3718592009-12-21 15:27:41 +000036
Victor Stinnerbf965582016-10-18 16:29:27 +020037double _Py_log1p(double x);
38
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