Author: Alexander Schremmer <alex AT alexanderweb DOT de>
Branch: math-improvements
Changeset: r95789:cef706f5a301
Date: 2019-02-04 15:36 +0100
http://bitbucket.org/pypy/pypy/changeset/cef706f5a301/
Log: Clean whitespace.
diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -1254,7 +1254,7 @@
z._normalize()
return z
rshift._always_inline_ = 'try' # It's so fast that it's always benefitial.
-
+
@jit.elidable
def rqshift(self, int_other):
wordshift = int_other / SHIFT
@@ -2062,13 +2062,13 @@
else:
vtop = v.widedigit(j)
assert vtop <= wm1
-
+
vv = (vtop << SHIFT) | v.widedigit(abs(j-1))
-
+
# Hints to make division just as fast as doing it unsigned. But avoids
casting to get correct results.
assert vv >= 0
assert wm1 >= 1
-
+
q = vv / wm1
r = vv % wm1 # This seems to be slightly faster on widen digits than
vv - wm1 * q.
vj2 = v.digit(abs(j-2))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit