[pypy-svn] r33660 - pypy/branch/factor-long-out/pypy/rpython

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Oct 24 17:08:35 CEST 2006


Author: cfbolz
Date: Tue Oct 24 17:08:34 2006
New Revision: 33660

Modified:
   pypy/branch/factor-long-out/pypy/rpython/rarithmetic.py
Log:
moved isinf here and forgot to check in


Modified: pypy/branch/factor-long-out/pypy/rpython/rarithmetic.py
==============================================================================
--- pypy/branch/factor-long-out/pypy/rpython/rarithmetic.py	(original)
+++ pypy/branch/factor-long-out/pypy/rpython/rarithmetic.py	Tue Oct 24 17:08:34 2006
@@ -44,6 +44,9 @@
 LONG_MASK = _Ltest*2-1
 LONG_TEST = _Ltest
 
+def isinf(x):
+    return x != 0.0 and x / 2 == x
+
 def intmask(n):
     if isinstance(n, int):
         return int(n)   # possibly bool->int



More information about the Pypy-commit mailing list