[pypy-commit] pypy improve-rbigint: Float multiplication (it somewhat works when SHIFT = 63)

Stian Andreassen noreply at buildbot.pypy.org
Mon Jul 23 11:52:42 CEST 2012


Author: Stian Andreassen
Branch: improve-rbigint
Changeset: r56405:c0c22f0218bf
Date: 2012-07-23 11:54 +0200
http://bitbucket.org/pypy/pypy/changeset/c0c22f0218bf/

Log:	Float multiplication (it somewhat works when SHIFT = 63)

diff --git a/pypy/rlib/rbigint.py b/pypy/rlib/rbigint.py
--- a/pypy/rlib/rbigint.py
+++ b/pypy/rlib/rbigint.py
@@ -44,7 +44,7 @@
     LONG_TYPE = rffi.LONGLONG
 
 MASK = BASE - 1
-FLOAT_MULTIPLIER = float(1 << LONG_BIT) # Because it works.
+FLOAT_MULTIPLIER = float(1 << SHIFT)
 
 # Debugging digit array access.
 #


More information about the pypy-commit mailing list