From 664b511c0acdfdecdec92d2255ffd94c4e6d5f7a Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Wed, 16 Dec 2009 20:23:42 +0000 Subject: Merged revisions 76861 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r76861 | mark.dickinson | 2009-12-16 20:13:40 +0000 (Wed, 16 Dec 2009) | 3 lines Issue #3366: Add expm1 function to math module. Thanks Eric Smith for testing on Windows. ........ --- Modules/_math.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Modules/_math.h (limited to 'Modules/_math.h') diff --git a/Modules/_math.h b/Modules/_math.h new file mode 100644 index 0000000000..69c96b5ab7 --- /dev/null +++ b/Modules/_math.h @@ -0,0 +1,9 @@ +double _Py_expm1(double x); + +#ifdef HAVE_EXPM1 +#define m_expm1 expm1 +#else +/* if the system doesn't have expm1, use the substitute + function defined in Modules/_math.c. */ +#define m_expm1 _Py_expm1 +#endif -- cgit v1.2.1