]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: small Mpint method simplifications
authorMatthew Dempsky <mdempsky@google.com>
Wed, 23 Mar 2016 18:07:20 +0000 (11:07 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 23 Mar 2016 19:22:53 +0000 (19:22 +0000)
commit0659cf691194f30345442d66c94eba632ca6d7ae
tree47a7aa41cfdf2f4aff20c64cabc748a56090bbca
parent4c9a470d468b6b6fa0520f32e034a1762dba3f9d
cmd/compile: small Mpint method simplifications

Get rid of (*Mpint).Add's "quiet" parameter: it's always set to 0.

Inline (*Mpint).shift into (*Mpint).Lsh and (*Mpint).Rsh. There's no
need for a common shift method that can handle both left or right
shifts based on sign when the higher level abstractions only ever do
one or the other.

Change-Id: Icd3b082413f9193961b6835279e0bd4b6a6a6621
Reviewed-on: https://go-review.googlesource.com/21050
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/gc/mpint.go
src/cmd/compile/internal/gc/parser.go