Add better error reporting for MemoryErrors caused by str->float conversions.
[python.git] / Modules / _math.h
blobc0ceece662600990ffd5a520efbb8f3c80efecce
1 double _Py_acosh(double x);
2 double _Py_asinh(double x);
3 double _Py_atanh(double x);
4 double _Py_expm1(double x);
5 double _Py_log1p(double x);
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
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
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
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
39 #ifdef HAVE_LOG1P
40 #define m_log1p log1p
41 #else
42 /* if the system doesn't have log1p, use the substitute
43 function defined in Modules/_math.c. */
44 #define m_log1p _Py_log1p
45 #endif