コード例 #1
0
ファイル: history.py プロジェクト: yuyichao/pypy
 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 (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
コード例 #2
0
ファイル: history.py プロジェクト: soIu/rpython
 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 (i.e. on 64-bit),
         # then just using "==" would say False: two NaNs are always
         # different from each other.  Conversely, "0.0 == -0.0" but
         # they are not the same constant.
         return (longlong.extract_bits(self.value) ==
                 longlong.extract_bits(other.value))
     return False
コード例 #3
0
ファイル: history.py プロジェクト: jptomo/rpython-lang-scheme
 def nonnull(self):
     return bool(longlong.extract_bits(self.value))
コード例 #4
0
ファイル: history.py プロジェクト: soIu/rpython
 def nonnull(self):
     return bool(longlong.extract_bits(self.value))
コード例 #5
0
ファイル: resoperation.py プロジェクト: timfel/thesis-data
 def nonnull(self):
     return bool(longlong.extract_bits(self._resfloat))