]> Cypherpunks repositories - gostls13.git/commit
internal/bytealg: move short string Index implementations into bytealg
authorKeith Randall <khr@golang.org>
Sun, 4 Mar 2018 17:47:47 +0000 (09:47 -0800)
committerKeith Randall <khr@golang.org>
Sun, 4 Mar 2018 19:49:44 +0000 (19:49 +0000)
commitee58eccc565c0871d3f16fd702fd8649a3fb61ea
tree837073b78954dc987cf575ff478faf6fdb8afb0e
parentf6332bb84ad87e958290ae23b29a2b13a41ee2a2
internal/bytealg: move short string Index implementations into bytealg

Also move the arm64 CountByte implementation while we're here.

Fixes #19792

Change-Id: I1e0fdf1e03e3135af84150a2703b58dad1b0d57e
Reviewed-on: https://go-review.googlesource.com/98518
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
27 files changed:
src/bytes/bytes.go
src/bytes/bytes_amd64.go [deleted file]
src/bytes/bytes_arm64.go [deleted file]
src/bytes/bytes_generic.go [deleted file]
src/bytes/bytes_s390x.go [deleted file]
src/cmd/vet/all/whitelist/amd64.txt
src/cmd/vet/all/whitelist/s390x.txt
src/internal/bytealg/bytealg.go [new file with mode: 0644]
src/internal/bytealg/count_arm64.s [new file with mode: 0644]
src/internal/bytealg/count_generic.go
src/internal/bytealg/count_native.go
src/internal/bytealg/equal_native.go
src/internal/bytealg/index_amd64.go [new file with mode: 0644]
src/internal/bytealg/index_amd64.s [new file with mode: 0644]
src/internal/bytealg/index_arm64.go [new file with mode: 0644]
src/internal/bytealg/index_arm64.s [moved from src/bytes/bytes_arm64.s with 50% similarity]
src/internal/bytealg/index_generic.go [new file with mode: 0644]
src/internal/bytealg/index_native.go [new file with mode: 0644]
src/internal/bytealg/index_s390x.go [new file with mode: 0644]
src/internal/bytealg/index_s390x.s [new file with mode: 0644]
src/runtime/asm_amd64.s
src/runtime/asm_s390x.s
src/runtime/os_linux_s390x.go
src/strings/strings.go
src/strings/strings_amd64.go [deleted file]
src/strings/strings_generic.go [deleted file]
src/strings/strings_s390x.go [deleted file]