summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-04 15:09:02 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-04 15:09:02 (GMT)
commit3dc7c6a375b44f8bdabb33ed53ee687e07a12948 (patch)
treedbb5890b615c3c3bc2127184a80f0d79e7fe6c02 /Include
parent277a150146585408d12aca6ae766f4797b0abff4 (diff)
downloadcpython-3dc7c6a375b44f8bdabb33ed53ee687e07a12948.zip
cpython-3dc7c6a375b44f8bdabb33ed53ee687e07a12948.tar.gz
cpython-3dc7c6a375b44f8bdabb33ed53ee687e07a12948.tar.bz2
Merged revisions 68296,68299 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r68296 | mark.dickinson | 2009-01-04 12:29:36 +0000 (Sun, 04 Jan 2009) | 6 lines Add autoconf test to detect x87-style double rounding, as described in issue #2937. This information can be helpful for diagnosing platform- specific problems in math and cmath. The result of the test also serves as a fairly reliable indicator of whether the x87 floating-point instructions (as opposed to SSE2) are in use on Intel x86/x86_64 systems. ........ r68299 | mark.dickinson | 2009-01-04 13:57:26 +0000 (Sun, 04 Jan 2009) | 4 lines isinf and isnan are macros, not functions; fix configure script to use AC_CHECK_DECLS instead of AC_CHECK_FUNCS for these. (See discussion in issue #4506) ........
Diffstat (limited to 'Include')
-rw-r--r--Include/pymath.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/pymath.h b/Include/pymath.h
index 7cea9ae..13f95b4 100644
--- a/Include/pymath.h
+++ b/Include/pymath.h
@@ -87,7 +87,7 @@ extern double copysign(double, double);
* Note: PC/pyconfig.h defines Py_IS_NAN as _isnan
*/
#ifndef Py_IS_NAN
-#ifdef HAVE_ISNAN
+#ifdef HAVE_DECL_ISNAN
#define Py_IS_NAN(X) isnan(X)
#else
#define Py_IS_NAN(X) ((X) != (X))
@@ -104,7 +104,7 @@ extern double copysign(double, double);
* Note: PC/pyconfig.h defines Py_IS_INFINITY as _isinf
*/
#ifndef Py_IS_INFINITY
-#ifdef HAVE_ISINF
+#ifdef HAVE_DECL_ISINF
#define Py_IS_INFINITY(X) isinf(X)
#else
#define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X))