mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #15477: Add workaround for log1p(-0.0) on platforms where it's broken.
This commit is contained in:
parent
31a11902b3
commit
05d79e9abf
4 changed files with 28 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue