]> Cypherpunks repositories - gostls13.git/commit
math/big: replace local versions of bitLen, nlz with math/bits versions
authorRobert Griesemer <gri@golang.org>
Thu, 23 Mar 2017 17:54:08 +0000 (10:54 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 23 Mar 2017 19:43:09 +0000 (19:43 +0000)
commit70ea0ec30fe37326d24249d9c9330be1ad655a90
tree68c929ee71004d48e0c6d45f39e3c88d68581b81
parent536a2257fba6dd18c74506988bdf3d6a15e52831
math/big: replace local versions of bitLen, nlz with math/bits versions

Verified that BenchmarkBitLen time went down from 2.25 ns/op to 0.65 ns/op
an a 2.3 GHz Intel Core i7, before removing that benchmark (now covered by
math/bits benchmarks).

Change-Id: I3890bb7d1889e95b9a94bd68f0bdf06f1885adeb
Reviewed-on: https://go-review.googlesource.com/38464
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
17 files changed:
src/math/big/arith.go
src/math/big/arith_386.s
src/math/big/arith_amd64.s
src/math/big/arith_amd64p32.s
src/math/big/arith_arm.s
src/math/big/arith_arm64.s
src/math/big/arith_decl.go
src/math/big/arith_decl_pure.go
src/math/big/arith_mips64x.s
src/math/big/arith_mipsx.s
src/math/big/arith_ppc64x.s
src/math/big/arith_s390x.s
src/math/big/arith_test.go
src/math/big/float.go
src/math/big/floatconv_test.go
src/math/big/nat.go
src/math/big/natconv_test.go