summaryrefslogtreecommitdiff
path: root/PC/pyconfig.h
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2006-05-25 15:53:30 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2006-05-25 15:53:30 +0000
commitf94323fbb4e83b756b1f328f06a1615d8c366c20 (patch)
tree0162fcea03d1e3ba5aeec93b1cff612dd19c01d7 /PC/pyconfig.h
parent4b4e33ef14cecd0bc9c6566ea8b402733e7e445f (diff)
downloadcpython-git-f94323fbb4e83b756b1f328f06a1615d8c366c20.tar.gz
Added a new macro, Py_IS_FINITE(X). On windows there is an intrinsic for this and it is more efficient than to use !Py_IS_INFINITE(X) && !Py_IS_NAN(X). No change on other platforms
Diffstat (limited to 'PC/pyconfig.h')
-rw-r--r--PC/pyconfig.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index a9c1613807..cb42131d4f 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -162,6 +162,7 @@ typedef int pid_t;
#include <float.h>
#define Py_IS_NAN _isnan
#define Py_IS_INFINITY(X) (!_finite(X) && !_isnan(X))
+#define Py_IS_FINITE(X) _finite(X)
#endif /* _MSC_VER */