Author: stian
Branch: math-improvements
Changeset: r92995:f09288ca6bf9
Date: 2017-11-12 10:36 +0100
http://bitbucket.org/pypy/pypy/changeset/f09288ca6bf9/

Log:    Tweak comment about why we don't do it unsigned.

diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -2117,7 +2117,7 @@
 
     wm1 = w.widedigit(abs(size_w-1))
     wm2 = w.widedigit(abs(size_w-2))
-
+    
     j = size_v - 1
     k -= 1
     while k >= 0:
@@ -2132,7 +2132,7 @@
             vtop = v.widedigit(j) << SHIFT
 
         vv = vtop | v.digit(abs(j-1))
-        # These two hints to make division just as fast as doing it unsigned.
+        # 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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to