diff options
| author | Heschi Kreinick <heschi@google.com> | 2018-01-29 16:09:11 -0500 |
|---|---|---|
| committer | Heschi Kreinick <heschi@google.com> | 2018-02-14 18:29:22 +0000 |
| commit | 7ac756f74b1a7dfc984152d863b3e3c86f90b2c7 (patch) | |
| tree | 78a883e23127b0a125613acde9708837b83e079a /src/encoding/json/encode.go | |
| parent | 39eea62340a129154d3c2c2347386e8af762d6d1 (diff) | |
| download | go-7ac756f74b1a7dfc984152d863b3e3c86f90b2c7.tar.xz | |
cmd/compile/internal/ssa: use math/bits for register sets
Using bits.TrailingZeroes instead of iterating over each bit is a small
but easy win for the common case of only one or two registers being set.
I copied in the implementation for use with pre-1.9 bootstraps.
Change-Id: Ieaa768554d7d5239a5617fbf34f1ee0b32ce1de5
Reviewed-on: https://go-review.googlesource.com/92395
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
