summaryrefslogtreecommitdiffstats
path: root/Python/pymath.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-13 21:27:50 (GMT)
committerGitHub <noreply@github.com>2021-10-13 21:27:50 (GMT)
commit194a9526d8ee6abbbe58ef48520ec87a7e83f327 (patch)
treeff8b22ba8a475d7da5a5b5a6ca75316bd9d44c5d /Python/pymath.c
parentaac29af6785712019d34f1a7f15b3c408a4f68ae (diff)
downloadcpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.zip
cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.gz
cpython-194a9526d8ee6abbbe58ef48520ec87a7e83f327.tar.bz2
bpo-45440: Require math.h isinf() to build (GH-28894)
Building Python now requires a C99 <math.h> header file providing isinf(), isnan() and isfinite() functions. Remove the Py_FORCE_DOUBLE() macro. It was used by the Py_IS_INFINITY() macro. Changes: * Remove Py_IS_NAN(), Py_IS_INFINITY() and Py_IS_FINITE() in PC/pyconfig.h. * Remove the _Py_force_double() function. * configure no longer checks if math.h defines isinf(), isnan() and isfinite().
Diffstat (limited to 'Python/pymath.c')
-rw-r--r--Python/pymath.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Python/pymath.c b/Python/pymath.c
index d3c52a0..b2681f2 100644
--- a/Python/pymath.c
+++ b/Python/pymath.c
@@ -1,18 +1,5 @@
#include "Python.h"
-#ifdef X87_DOUBLE_ROUNDING
-/* On x86 platforms using an x87 FPU, this function is called from the
- Py_FORCE_DOUBLE macro (defined in pymath.h) to force a floating-point
- number out of an 80-bit x87 FPU register and into a 64-bit memory location,
- thus rounding from extended precision to double precision. */
-double _Py_force_double(double x)
-{
- volatile double y;
- y = x;
- return y;
-}
-#endif
-
#ifdef HAVE_GCC_ASM_FOR_X87
// Inline assembly for getting and setting the 387 FPU control word on