https://github.com/python/cpython
Revision fa26245a1c1aa938cce391348d6bd879da357522 authored by Christian Heimes on 25 October 2021, 08:25:27 UTC, committed by GitHub on 25 October 2021, 08:25:27 UTC


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>
1 parent 51ed2c5
History
Tip revision: fa26245a1c1aa938cce391348d6bd879da357522 authored by Christian Heimes on 25 October 2021, 08:25:27 UTC
bpo-45548: Remove _math.c workarounds for pre-C99 libm (GH-29179)
Tip revision: fa26245
File Mode Size
clinic
frozen_modules
Python-ast.c -rw-r--r-- 403.2 KB
Python-tokenize.c -rw-r--r-- 4.9 KB
README -rw-r--r-- 62 bytes
_warnings.c -rw-r--r-- 37.5 KB
adaptive.md -rw-r--r-- 5.5 KB
asdl.c -rw-r--r-- 188 bytes
ast.c -rw-r--r-- 33.8 KB
ast_opt.c -rw-r--r-- 35.3 KB
ast_unparse.c -rw-r--r-- 25.9 KB
bltinmodule.c -rw-r--r-- 89.0 KB
bootstrap_hash.c -rw-r--r-- 17.6 KB
ceval.c -rw-r--r-- 234.3 KB
ceval_gil.h -rw-r--r-- 11.6 KB
codecs.c -rw-r--r-- 45.1 KB
compile.c -rw-r--r-- 258.7 KB
condvar.h -rw-r--r-- 8.4 KB
context.c -rw-r--r-- 31.1 KB
dtoa.c -rw-r--r-- 78.3 KB
dup2.c -rw-r--r-- 759 bytes
dynamic_annotations.c -rw-r--r-- 6.6 KB
dynload_hpux.c -rw-r--r-- 2.1 KB
dynload_shlib.c -rw-r--r-- 2.8 KB
dynload_stub.c -rw-r--r-- 186 bytes
dynload_win.c -rw-r--r-- 9.9 KB
errors.c -rw-r--r-- 48.0 KB
fileutils.c -rw-r--r-- 70.8 KB
formatter_unicode.c -rw-r--r-- 51.1 KB
frame.c -rw-r--r-- 3.4 KB
frozen.c -rw-r--r-- 5.4 KB
frozenmain.c -rw-r--r-- 1.9 KB
future.c -rw-r--r-- 4.3 KB
getargs.c -rw-r--r-- 88.6 KB
getcompiler.c -rw-r--r-- 534 bytes
getcopyright.c -rw-r--r-- 511 bytes
getopt.c -rw-r--r-- 4.6 KB
getplatform.c -rw-r--r-- 133 bytes
getversion.c -rw-r--r-- 308 bytes
hamt.c -rw-r--r-- 78.4 KB
hashtable.c -rw-r--r-- 11.2 KB
import.c -rw-r--r-- 69.6 KB
importdl.c -rw-r--r-- 7.3 KB
importdl.h -rw-r--r-- 487 bytes
initconfig.c -rw-r--r-- 93.0 KB
makeopcodetargets.py -rwxr-xr-x 1.8 KB
marshal.c -rw-r--r-- 50.9 KB
modsupport.c -rw-r--r-- 18.1 KB
mysnprintf.c -rw-r--r-- 2.4 KB
mystrtoul.c -rw-r--r-- 8.1 KB
opcode_targets.h -rw-r--r-- 6.8 KB
pathconfig.c -rw-r--r-- 20.5 KB
preconfig.c -rw-r--r-- 25.1 KB
pyarena.c -rw-r--r-- 5.5 KB
pyctype.c -rw-r--r-- 7.7 KB
pyfpe.c -rw-r--r-- 345 bytes
pyhash.c -rw-r--r-- 15.1 KB
pylifecycle.c -rw-r--r-- 81.7 KB
pymath.c -rw-r--r-- 478 bytes
pystate.c -rw-r--r-- 60.1 KB
pystrcmp.c -rw-r--r-- 753 bytes
pystrhex.c -rw-r--r-- 5.3 KB
pystrtod.c -rw-r--r-- 40.1 KB
pythonrun.c -rw-r--r-- 42.7 KB
pytime.c -rw-r--r-- 30.6 KB
specialize.c -rw-r--r-- 47.9 KB
stdlib_module_names.h -rw-r--r-- 3.5 KB
structmember.c -rw-r--r-- 8.8 KB
suggestions.c -rw-r--r-- 8.5 KB
symtable.c -rw-r--r-- 71.5 KB
sysmodule.c -rw-r--r-- 93.3 KB
thread.c -rw-r--r-- 5.8 KB
thread_nt.h -rw-r--r-- 12.8 KB
thread_pthread.h -rw-r--r-- 25.3 KB
traceback.c -rw-r--r-- 34.7 KB
wordcode_helpers.h -rw-r--r-- 1.2 KB

README

back to top