aboutsummaryrefslogtreecommitdiff
path: root/src/bytes
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2018-03-03 14:24:54 -0800
committerKeith Randall <khr@golang.org>2018-03-04 17:49:39 +0000
commitf6332bb84ad87e958290ae23b29a2b13a41ee2a2 (patch)
treef09ef9174bee3ae86920a113318f4a322a1a98ad /src/bytes
parent45964e4f9c950863adcaeb62fbe49f3fa913f27d (diff)
downloadgo-f6332bb84ad87e958290ae23b29a2b13a41ee2a2.tar.gz
go-f6332bb84ad87e958290ae23b29a2b13a41ee2a2.zip
internal/bytealg: move compare functions to bytealg
Move bytes.Compare and runtime·cmpstring to bytealg. Update #19792 Change-Id: I139e6d7c59686bef7a3017e3dec99eba5fd10447 Reviewed-on: https://go-review.googlesource.com/98515 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/bytes')
-rw-r--r--src/bytes/bytes_decl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytes/bytes_decl.go b/src/bytes/bytes_decl.go
index d144fccf4b..af0f8b179f 100644
--- a/src/bytes/bytes_decl.go
+++ b/src/bytes/bytes_decl.go
@@ -14,11 +14,11 @@ func IndexByte(b []byte, c byte) int // in internal/bytealg
// Equal returns a boolean reporting whether a and b
// are the same length and contain the same bytes.
// A nil argument is equivalent to an empty slice.
-func Equal(a, b []byte) bool // ../runtime/asm_$GOARCH.s
+func Equal(a, b []byte) bool // in internal/bytealg
//go:noescape
// Compare returns an integer comparing two byte slices lexicographically.
// The result will be 0 if a==b, -1 if a < b, and +1 if a > b.
// A nil argument is equivalent to an empty slice.
-func Compare(a, b []byte) int // ../runtime/noasm.go or ../runtime/asm_{386,amd64}.s
+func Compare(a, b []byte) int // in internal/bytealg