]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45412: Move _Py_SET_53BIT_PRECISION_START to pycore_pymath.h (GH-28882)
authorVictor Stinner <vstinner@python.org>
Mon, 11 Oct 2021 21:09:40 +0000 (23:09 +0200)
committerGitHub <noreply@github.com>
Mon, 11 Oct 2021 21:09:40 +0000 (23:09 +0200)
commit7103356455c8b0c2ba3523929327756413337a31
tree7fc7286a502fe00cf42bd2f9c6759064f0f6df82
parenta9fe1a8e5b4698937e06c2c419da92e6f78f2ee7
bpo-45412: Move _Py_SET_53BIT_PRECISION_START to pycore_pymath.h (GH-28882)

Move the following macros , to pycore_pymath.h (internal C API):

* _Py_SET_53BIT_PRECISION_HEADER
* _Py_SET_53BIT_PRECISION_START
* _Py_SET_53BIT_PRECISION_END

PEP 7: add braces to if and "do { ... } while (0)" in these macros.

Move also _Py_get_387controlword() and _Py_set_387controlword()
definitions to pycore_pymath.h. These functions are no longer
exported.

pystrtod.c now includes pycore_pymath.h.
Include/internal/pycore_pymath.h
Include/pymath.h
Include/pyport.h
Python/pymath.c
Python/pystrtod.c