commit | 9cae178f21745eaa2cbefb74b925bea1322a2baa | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Wed Dec 16 20:13:40 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Wed Dec 16 20:13:40 2009 +0000 |
tree | 6d3c591dad0aee22b562b89635ab759efd708e0b | |
parent | 98e3df38fd863af8f399739e461f84058e7bcfe0 [diff] [blame] |
Issue #3366: Add expm1 function to math module. Thanks Eric Smith for testing on Windows.
diff --git a/Modules/_math.h b/Modules/_math.h new file mode 100644 index 0000000..69c96b5 --- /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