]> Cypherpunks repositories - gostls13.git/commit
runtime: mask shifts in map implementation on x86
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 20 Aug 2017 18:47:50 +0000 (11:47 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 24 Aug 2017 05:38:57 +0000 (05:38 +0000)
commitf7aa454c58ed0d06823f509fc39474b6f52f7c3a
treeee3cb03644836d16b0167040bf4334b68e00fb46
parent5df1fe52fe7b909c925738e516feb54be712f2c1
runtime: mask shifts in map implementation on x86

This slightly improves the generated code on x86 architectures,
including on many hot paths.

It is a no-op on other architectures.

Change-Id: I86336fd846bc5805a27bbec572e8c73dcbd0d567
Reviewed-on: https://go-review.googlesource.com/57411
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/hashmap.go
src/runtime/hashmap_fast.go
src/runtime/runtime_test.go