Author: Armin Rigo <[email protected]>
Branch: jit-counter
Changeset: r67773:42b5b4e34f4d
Date: 2013-10-31 12:53 +0100
http://bitbucket.org/pypy/pypy/changeset/42b5b4e34f4d/
Log: Expand the docstring
diff --git a/rpython/jit/metainterp/counter.py
b/rpython/jit/metainterp/counter.py
--- a/rpython/jit/metainterp/counter.py
+++ b/rpython/jit/metainterp/counter.py
@@ -31,8 +31,9 @@
return 1.0 / (threshold - 0.001)
def get_index(self, hash):
- """Return the index (< self.size) from a hash value. This keeps
- the *high* bits of hash! Be sure that hash is computed correctly."""
+ """Return the index (< self.size) from a hash value. This truncates
+ the hash to 32 bits, and then keep the *highest* remaining bits.
+ Be sure that hash is computed correctly."""
return intmask(r_uint32(r_uint(hash) >> self.shift))
get_index._always_inline_ = True
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit