]> Cypherpunks repositories - gostls13.git/commit
internal/bytealg: clean up and simplify the riscv64 equal implementation
authorJoel Sing <joel@sing.id.au>
Fri, 7 Feb 2025 10:12:05 +0000 (21:12 +1100)
committerJoel Sing <joel@sing.id.au>
Thu, 20 Feb 2025 11:21:09 +0000 (03:21 -0800)
commitad39fd94860661d022c633cd2856a76221adedc8
treeab1f5368f9aa49149732facffa1873893132a4c9
parent04de448c6d9d0ceab7f04b1f3d44f91e8b129d58
internal/bytealg: clean up and simplify the riscv64 equal implementation

Now that riscv64 is only regabi, remove the entrypoint separation and
have runtime.memequal_varlen call runtime.memequal. Add a zero byte
length check and replace the equal and not equal exit paths with a
single exit path that conditions on length reaching zero.

Cq-Include-Trybots: luci.golang.try:gotip-linux-riscv64
Change-Id: Ida4e54378daa7fd423f759753eba04ce513a27cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/648855
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Meng Zhuo <mengzhuo1203@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/internal/bytealg/equal_riscv64.s