]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Feb 2022 17:16:23 +0000 (18:16 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Feb 2022 17:16:23 +0000 (18:16 +0100)
commit9bbdde218005f552304d9954bb97e3f9185edded
tree2085d4399dfdcb03bbf9af4c7e5cf92bbdb55f43
parent375a56bd4015596c0cf44129c8842a1fe7199785
bpo-45412: Add _PY_SHORT_FLOAT_REPR macro (GH-31171)

Remove the HAVE_PY_SET_53BIT_PRECISION macro (moved to the internal
C API).

* Move HAVE_PY_SET_53BIT_PRECISION macro to pycore_pymath.h.
* Replace PY_NO_SHORT_FLOAT_REPR macro with _PY_SHORT_FLOAT_REPR
  macro which is always defined. gcc -Wundef emits a warning when
  using _PY_SHORT_FLOAT_REPR but the macro is not defined, if
  pycore_pymath.h include was forgotten.
Doc/whatsnew/3.11.rst
Include/internal/pycore_dtoa.h
Include/internal/pycore_pymath.h
Include/pyport.h
Misc/NEWS.d/next/C API/2022-02-06-20-14-21.bpo-45412.XJVaGW.rst [new file with mode: 0644]
Modules/cmathmodule.c
Modules/mathmodule.c
Objects/floatobject.c
Python/dtoa.c
Python/pystrtod.c
Python/sysmodule.c