• Russ Cox's avatar
    cmd/gc: eliminate some pointer arithmetic · acba34e4
    Russ Cox authored
    In mparith, all the a1-- are problematic. Rewrite it all without pointers.
    It's clearer anyway.
    
    In popt, v is problematic because it is used both as a fixed pointer
    (v = byvar[i]) and as a moving pointer (v = var; v++) aka slice.
    Eliminate pointer movement.
    
    Tested that this still produces bit-for-bit output for 'go build -a std'
    compared to d260756 (current master).
    
    Change-Id: I1a1bed0f98b594c3864fe95075dd95f9b52113e0
    Reviewed-on: https://go-review.googlesource.com/4645Reviewed-by: 's avatarAustin Clements <austin@google.com>
    acba34e4
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include 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...