]> Cypherpunks repositories - gostls13.git/commit
internal/bytealg: move Count to bytealg
authorKeith Randall <khr@golang.org>
Sat, 3 Mar 2018 18:28:58 +0000 (10:28 -0800)
committerKeith Randall <khr@golang.org>
Sun, 4 Mar 2018 17:49:25 +0000 (17:49 +0000)
commit45964e4f9c950863adcaeb62fbe49f3fa913f27d
treebb07b6ae9f12caa6156932ff236ce3c4c42147e0
parent89ae7045f395de8eb4085e3ac8c1ebf59b029965
internal/bytealg: move Count to bytealg

Move bytes.Count and strings.Count to bytealg.

Update #19792

Change-Id: I3e4e14b504a0b71758885bb131e5656e342cf8cb
Reviewed-on: https://go-review.googlesource.com/98495
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
18 files changed:
src/bytes/bytes.go
src/bytes/bytes_amd64.go
src/bytes/bytes_arm64.go
src/bytes/bytes_generic.go
src/bytes/bytes_s390x.go
src/bytes/bytes_test.go
src/bytes/export_test.go
src/cmd/vet/all/whitelist/amd64.txt
src/internal/bytealg/count_amd64.s [new file with mode: 0644]
src/internal/bytealg/count_generic.go [new file with mode: 0644]
src/internal/bytealg/count_native.go [new file with mode: 0644]
src/internal/bytealg/equal_native.go
src/runtime/asm_amd64.s
src/runtime/runtime2.go
src/strings/strings.go
src/strings/strings_amd64.go
src/strings/strings_generic.go
src/strings/strings_s390x.go