go/src/math/big
Josh Bleecher Snyder 2de773d45f math/big: make nat.setUint64 vet-friendly
nat.setUint64 is nicely generic.
By assuming 32- or 64-bit words, however,
we can write simpler code,
and eliminate some shifts
in dead code that vet complains about.

Generated code for 64 bit systems is unaltered.
Generated code for 32 bit systems is much better.
For 386, the routine length drops from 325
bytes of code to 271 bytes of code, with fewer loops.

Change-Id: I1bc14c06272dee37a7fcb48d33dd1e621eba945d
Reviewed-on: https://go-review.googlesource.com/38070
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2017-03-11 00:39:23 +00:00
..
accuracy_string.go
arith.go math/big: use math/bits where appropriate 2017-02-24 19:19:02 +00:00
arith_386.s
arith_amd64.s
arith_amd64p32.s
arith_arm.s
arith_arm64.s
arith_decl.go
arith_decl_pure.go
arith_decl_s390x.go
arith_mips64x.s
arith_mipsx.s math, math/big: add support for GOARCH=mips{,le} 2016-11-03 22:55:06 +00:00
arith_ppc64.s
arith_ppc64le.s
arith_ppc64x.s
arith_s390x.s
arith_s390x_test.go math/big: fix s390x test build tags 2017-02-14 19:44:35 +00:00
arith_test.go
bits_test.go
calibrate_test.go
decimal.go
decimal_test.go
doc.go
example_rat_test.go
example_test.go
float.go all: remove the the duplicate words 2017-03-06 04:39:12 +00:00
float_test.go
floatconv.go
floatconv_test.go
floatexample_test.go
floatmarsh.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
floatmarsh_test.go
ftoa.go
gcd_test.go
hilbert_test.go
int.go math/big: simplify bool expression 2017-02-14 23:34:25 +00:00
int_test.go math/big: add IsInt64/IsUint64 predicates 2017-02-07 23:02:33 +00:00
intconv.go
intconv_test.go
intmarsh.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
intmarsh_test.go
nat.go math/big: make nat.setUint64 vet-friendly 2017-03-11 00:39:23 +00:00
nat_test.go math/big: use math/bits where appropriate 2017-02-24 19:19:02 +00:00
natconv.go math/big: use math/bits where appropriate 2017-02-24 19:19:02 +00:00
natconv_test.go
prime.go math/big: add Baillie-PSW test to (*Int).ProbablyPrime 2016-11-22 02:05:47 +00:00
prime_test.go all: fix some printf format strings 2017-02-14 02:09:30 +00:00
rat.go
rat_test.go
ratconv.go
ratconv_test.go
ratmarsh.go
ratmarsh_test.go
roundingmode_string.go