bpo-45548: Remove _math.c workarounds for pre-C99 libm by tiran · Pull Request #29179 · python/cpython

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 tiran changed the title bpo-45548: Directly include _math.c bpo-45548: Remove _math.c workarounds for pre-C99 libm

Oct 24, 2021

@tiran tiran marked this pull request as ready for review

October 24, 2021 20:00

mdickinson

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>

@tiran

@tiran