bpo-45548: Remove _math.c workarounds for pre-C99 libm#29179
bpo-45548: Remove _math.c workarounds for pre-C99 libm#29179miss-islington merged 4 commits intopython:mainfrom
Conversation
|
I created an alternative approach but just inlining into |
Agreed. Looks fine to me. I somewhat prefer @brettcannon's approach (it feels odd to be including a |
|
A bit off-topic (and probably fodder for a separate PR), but it looks as though we ought to be able to get rid of most of the functionality in |
Looking more closely, I think we can assume that all of |
The :mod:`math` and :mod:`cmath` implementation now require a C99 compatible ``libm`` and no longer ship with workarounds for missing acosh, asinh, expm1, and log1p functions. The changeset also removes ``_math.c`` and moves the last remaining workaround into ``_math.h``. This simplifies static builds with ``Modules/Setup`` and resolves symbol conflicts. Co-authored-by: Mark Dickinson <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Signed-off-by: Christian Heimes <[email protected]>
|
@mdickinson I implemented your suggestion, moved the log1p workaround into (Sorry for the squashed commit. I made an error while rewriting the commit message) |
mdickinson
left a comment
There was a problem hiding this comment.
Mostly LGTM; two nitpicks and one question.
The :mod:
mathand :mod:cmathimplementation now require a C99 compatiblelibmand no longer ship with workarounds for missing acosh, asinh,expm1, and log1p functions.
The changeset also removes
_math.cand moves the last remainingworkaround into
_math.h. This simplifies static builds withModules/Setupand resolves symbol conflicts.Co-authored-by: Mark Dickinson [email protected]
Co-authored-by: Brett Cannon [email protected]
Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue45548
Automerge-Triggered-By: GH:tiran