• Robert Griesemer's avatar
    cmd/internal/gc: use 512 bits (rather than 464) for multi-precision arithmetic · a51d5f27
    Robert Griesemer authored
    The original implementation used 16 int "words" but only 29 bits per word
    for a total of 16*29 = 464 bits, with a space consumption of 16*64 = 1024
    bits on a 64 bit machine. Switching to 512 bits increases precision while
    still using (in the worst case) half the amount of memory per mp value on
    a 64 bit machine.
    
    Also: Decreased permitted number of least-significant mantissa bits which
    may be incorrect when considering if a precise floating-point constant is
    an integer from 29 to 16 bits.
    
    Change-Id: Iee9287056f0e9aa4f06ceac0724ff4674f710c53
    Reviewed-on: https://go-review.googlesource.com/8429Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    a51d5f27
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...