diff options
author | Mark Dickinson <mdickinson@enthought.com> | 2012-08-18 12:24:30 +0100 |
---|---|---|
committer | Mark Dickinson <mdickinson@enthought.com> | 2012-08-18 12:24:30 +0100 |
commit | 05d79e9abfac38878298e4381c9166e58488664a (patch) | |
tree | bf5cab95e59ccc598eb7b9c3707efa65fd0040f2 /Modules/_math.h | |
parent | 31a11902b3c2483998cee2573deb42ac9e0e24c0 (diff) | |
download | cpython-git-05d79e9abfac38878298e4381c9166e58488664a.tar.gz |
Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.
Diffstat (limited to 'Modules/_math.h')
-rw-r--r-- | Modules/_math.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Modules/_math.h b/Modules/_math.h index c0ceece662..cf079ad770 100644 --- a/Modules/_math.h +++ b/Modules/_math.h @@ -36,10 +36,6 @@ double _Py_log1p(double x); #define m_expm1 _Py_expm1 #endif -#ifdef HAVE_LOG1P -#define m_log1p log1p -#else -/* if the system doesn't have log1p, use the substitute - function defined in Modules/_math.c. */ +/* Use the substitute from _math.c on all platforms: + it includes workarounds for buggy handling of zeros. */ #define m_log1p _Py_log1p -#endif |