diff options
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pymath.c | 9 | ||||
-rw-r--r-- | Python/pystrtod.c | 1 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Python/pymath.c b/Python/pymath.c index 24b804223e..d3c52a0965 100644 --- a/Python/pymath.c +++ b/Python/pymath.c @@ -13,10 +13,10 @@ double _Py_force_double(double x) } #endif -#ifdef HAVE_GCC_ASM_FOR_X87 -/* inline assembly for getting and setting the 387 FPU control word on - gcc/x86 */ +#ifdef HAVE_GCC_ASM_FOR_X87 +// Inline assembly for getting and setting the 387 FPU control word on +// GCC/x86. #ifdef _Py_MEMORY_SANITIZER __attribute__((no_sanitize_memory)) #endif @@ -29,8 +29,7 @@ unsigned short _Py_get_387controlword(void) { void _Py_set_387controlword(unsigned short cw) { __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); } - -#endif +#endif // HAVE_GCC_ASM_FOR_X87 #ifndef HAVE_HYPOT diff --git a/Python/pystrtod.c b/Python/pystrtod.c index 9145d4eba1..ab5814de21 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -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 |