• Russ Cox's avatar
    runtime: fix uint64 division on 386 · 70138a21
    Russ Cox authored
    The uint64 divide function calls _mul64x32 to do a 64x32-bit multiply
    and then compares the result against the 64-bit numerator.
    If the result is bigger than the numerator, must use the slow path.
    
    Unfortunately, the 64x32 produces a 96-bit product, and only the
    low 64 bits were being used in the comparison. Return all 96 bits,
    the bottom 64 via the original uint64* pointer, and the top 32
    as the function's return value.
    
    Fixes 386 build (broken by ARM division tests).
    
    R=golang-dev, iant
    CC=golang-dev
    https://golang.org/cl/13722044
    70138a21
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...