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
commit62a2a5850e0314e5295fb613d0c6f2ddb547e902 (patch)
tree534399f7aee1d9cd7b4e9b19fc10fce722db8743 /PC/pyconfig.h
parentb3f0886482ce49f7dab4818279549412752442a3 (diff)
downloadcpython-62a2a5850e0314e5295fb613d0c6f2ddb547e902.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 */