]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: replace all uses of CtzXX with TrailingZerosXX
authorYoulin Feng <fengyoulin@live.com>
Wed, 5 Oct 2022 07:29:29 +0000 (15:29 +0800)
committerGopher Robot <gobot@golang.org>
Tue, 18 Oct 2022 18:06:27 +0000 (18:06 +0000)
commit7ae652b7c0cddb8f6e04bfa6f5805baac823dd64
tree04b02db5fd0e54ac405a67b3ef6b297bffd0fbfb
parentc45ebef05edcb217be8f9bf1d7649763132727cc
runtime: replace all uses of CtzXX with TrailingZerosXX

Replace all uses of Ctz64/32/8 with TrailingZeros64/32/8, because they
are the same and maybe duplicated. Also renamed CtzXX functions in 386
assembly code.

Change-Id: I19290204858083750f4be589bb0923393950ae6d
Reviewed-on: https://go-review.googlesource.com/c/go/+/438935
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
12 files changed:
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/test/inl_test.go
src/runtime/internal/sys/intrinsics.go
src/runtime/internal/sys/intrinsics_386.s
src/runtime/internal/sys/intrinsics_common.go
src/runtime/internal/sys/intrinsics_stubs.go
src/runtime/internal/sys/intrinsics_test.go
src/runtime/malloc.go
src/runtime/mbitmap.go
src/runtime/slice.go
src/runtime/stack.go
test/intrinsic.dir/main.go