summaryrefslogtreecommitdiff
path: root/Modules/_math.h
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-16 20:23:42 +0000
committerMark Dickinson <dickinsm@gmail.com>2009-12-16 20:23:42 +0000
commit664b511c0acdfdecdec92d2255ffd94c4e6d5f7a (patch)
tree075cdf8651d66f24e42c1b87e57e7423e3e7a9d3 /Modules/_math.h
parentef1992b9fbcfb1dae7e946bfc42403fcaae9f044 (diff)
downloadcpython-git-664b511c0acdfdecdec92d2255ffd94c4e6d5f7a.tar.gz
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. ........
Diffstat (limited to 'Modules/_math.h')
-rw-r--r--Modules/_math.h9
1 files changed, 9 insertions, 0 deletions
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