[pypy-commit] pypy default: Expand the comment
arigo
noreply at buildbot.pypy.org
Sat Feb 8 11:36:46 CET 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r69101:61a9f16c3e8b
Date: 2014-02-08 11:35 +0100
http://bitbucket.org/pypy/pypy/changeset/61a9f16c3e8b/
Log: Expand the comment
diff --git a/rpython/jit/metainterp/history.py b/rpython/jit/metainterp/history.py
--- a/rpython/jit/metainterp/history.py
+++ b/rpython/jit/metainterp/history.py
@@ -276,8 +276,9 @@
def same_constant(self, other):
if isinstance(other, ConstFloat):
# careful in this comparison: if self.value and other.value
- # are both NaN, stored as regular floats, then it will turn
- # out to be false...
+ # are both NaN, stored as regular floats (i.e. on 64-bit),
+ # then just using "==" would say False: two NaNs are always
+ # different from each other.
return (longlong.extract_bits(self.value) ==
longlong.extract_bits(other.value))
return False
More information about the pypy-commit
mailing list