diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 15:53:30 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 15:53:30 (GMT) |
commit | f94323fbb4e83b756b1f328f06a1615d8c366c20 (patch) | |
tree | 0162fcea03d1e3ba5aeec93b1cff612dd19c01d7 /PC | |
parent | 4b4e33ef14cecd0bc9c6566ea8b402733e7e445f (diff) | |
download | cpython-f94323fbb4e83b756b1f328f06a1615d8c366c20.zip cpython-f94323fbb4e83b756b1f328f06a1615d8c366c20.tar.gz cpython-f94323fbb4e83b756b1f328f06a1615d8c366c20.tar.bz2 |
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')
-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 a9c1613..cb42131 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 */ |