]> Cypherpunks repositories - gostls13.git/commit
internal/runtime/maps: shift optimizations
authorMichael Pratt <mpratt@google.com>
Wed, 21 Aug 2024 20:17:16 +0000 (16:17 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 28 Oct 2024 21:25:50 +0000 (21:25 +0000)
commitcd54b9bae94b36f67869ef174cbb432bc4012183
tree95771c1b1e79fb4650dc144d3dae56bdf803ea31
parent775837f51f03245bcba333094b4b3742f8fbfca3
internal/runtime/maps: shift optimizations

Masking the shift lets the compiler elide a few instructions for
handling a shift of > 63 bits.

For #54766.

Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest-swissmap
Change-Id: I669fe01caa1de1b8521f1f56b6906f3e9066a39b
Reviewed-on: https://go-review.googlesource.com/c/go/+/611190
Auto-Submit: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/reflectdata/map_swiss.go
src/internal/runtime/maps/map.go