8000 bpo-45548: Remove _math.c workarounds for pre-C99 libm by tiran · Pull Request #29179 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-45548: Remove _math.c workarounds for pre-C99 libm #29179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

8000 Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update comments, it's _math.h now
  • Loading branch information
tiran committed Oct 25, 2021
commit 45b7fa66ed8877e75f6d9bab5fb7a5515a3c08ad
2 changes: 1 addition & 1 deletion Modules/_math.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* log1p(x) = log(1+x). The log1p function is designed to avoid the
significant loss of precision that arises from direct evaluation when x is
small. Use the substitute from _math.c on all platforms: it includes
small. Use the substitute from _math.h on all platforms: it includes
workarounds for buggy handling of zeros.
*/

Expand Down
2 changes: 1 addition & 1 deletion Modules/mathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ raised for division by zero and mod by zero.
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_dtoa.h" // _Py_dg_infinity()
#include "pycore_long.h" // _PyLong_GetZero()
/* For DBL_EPSILON in _math.c */
/* For DBL_EPSILON in _math.h */
#include <float.h>
/* For _Py_log1p with workarounds for buggy handling of zeros. */
#include "_math.h"
Expand Down
0