[pypy-commit] pypy default: rbigint.toint() is elidable
alex_gaynor
noreply at buildbot.pypy.org
Fri Aug 12 02:14:09 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r46443:b112e4459024
Date: 2011-08-11 17:16 -0700
http://bitbucket.org/pypy/pypy/changeset/b112e4459024/
Log: rbigint.toint() is elidable
diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -215,6 +215,7 @@
# then modify the result.
return _decimalstr_to_bigint(s)
+ @jit.elidable
def toint(self):
"""
Get an integer from a bigint object.
@@ -1603,7 +1604,7 @@
elif (base & (base - 1)) == 0:
# JRH: special case for power-of-2 bases
accum = 0
- accumbits = 0 # # of bits in accum
+ accumbits = 0 # # of bits in accum
basebits = 1 # # of bits in base-1
i = base
while 1:
More information about the pypy-commit
mailing list