diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 15:53:30 +0000 |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 15:53:30 +0000 |
commit | 62a2a5850e0314e5295fb613d0c6f2ddb547e902 (patch) | |
tree | 534399f7aee1d9cd7b4e9b19fc10fce722db8743 /PC/pyconfig.h | |
parent | b3f0886482ce49f7dab4818279549412752442a3 (diff) | |
download | cpython-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.h | 1 |
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 */ |