mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
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.
This commit is contained in:
parent
a9fe1a8e5b
commit
7103356455
5 changed files with 111 additions and 88 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <Python.h>
|
||||
#include "pycore_dtoa.h"
|
||||
#include "pycore_pymath.h" // _Py_SET_53BIT_PRECISION_START
|
||||
#include <locale.h>
|
||||
|
||||
/* Case-insensitive string match used for nan and inf detection; t should be
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue