]> Cypherpunks repositories - gostls13.git/commit
encoding/binary: remove bound checks from conversions.
authorAlexandru Moșoi <mosoi@google.com>
Sun, 13 Mar 2016 21:12:03 +0000 (22:12 +0100)
committerAlexandru Moșoi <alexandru@mosoi.ro>
Thu, 17 Mar 2016 20:48:39 +0000 (20:48 +0000)
commitebd9f1bd4c39bc2fe3bcf6f0d3c81f70dae495d8
tree8ba57c81353e31e45134bc2b9c47954f53481bd9
parentdbed1c6361f333f7a7aaec1a33a69d0b53956f6b
encoding/binary: remove bound checks from conversions.

* This the simplest solution I could came up with
that doesn't required changing the compiler.
* The bound checks become constants now
so they are removed during opt phase.

Updates #14808

Change-Id: If32c33d7ec08bb400321b465015d152f0a5d3001
Reviewed-on: https://go-review.googlesource.com/20654
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/encoding/binary/binary.go