]> Cypherpunks repositories - gostls13.git/commit
math/big: use array instead of slice for deBruijn lookups
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 5 Jul 2016 17:33:50 +0000 (10:33 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 16 Aug 2016 00:22:13 +0000 (00:22 +0000)
commit3357a02b74fea42c3348de83af81900c6623f584
tree020ff73393710b69fa358f6531e75121faf9c3b5
parent4e24e1d9996b0b0155c8349e49244d9694c89708
math/big: use array instead of slice for deBruijn lookups

This allows the compiler to remove a bounds check.

math/big/nat.go:681: index bounds check elided
math/big/nat.go:683: index bounds check elided

Change-Id: Ieecb89ec5e988761b06764bd671672015cd58e9d
Reviewed-on: https://go-review.googlesource.com/26663
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/math/big/nat.go