Uh oh!
There was an error while loading. Please reload this page.
bpo-45548: Remove _math.c workarounds for pre-C99 libm - #29179
Conversation
brettcannon
commented
Oct 23, 2021
I created an alternative approach but just inlining into |
mdickinson
commented
Oct 24, 2021
Agreed. Looks fine to me. I somewhat prefer @brettcannon's approach (it feels odd to be including a |
mdickinson
commented
Oct 24, 2021
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 |
mdickinson
commented
Oct 24, 2021
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 <mdickinson@enthought.com> Co-authored-by: Brett Cannon <brett@python.org> Signed-off-by: Christian Heimes <christian@python.org>
tiran
commented
Oct 24, 2021
@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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
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 mdickinson@enthought.com
Co-authored-by: Brett Cannon brett@python.org
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue45548
Automerge-Triggered-By: GH:tiran