diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-12-16 20:13:40 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-12-16 20:13:40 +0000 |
commit | 9cae178f21745eaa2cbefb74b925bea1322a2baa (patch) | |
tree | 6d3c591dad0aee22b562b89635ab759efd708e0b /Modules/_math.h | |
parent | 98e3df38fd863af8f399739e461f84058e7bcfe0 (diff) | |
download | cpython-git-9cae178f21745eaa2cbefb74b925bea1322a2baa.tar.gz |
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.h | 9 |
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 |