From f6332bb84ad87e958290ae23b29a2b13a41ee2a2 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Sat, 3 Mar 2018 14:24:54 -0800 Subject: internal/bytealg: move compare functions to bytealg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/bytes/bytes_decl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bytes/bytes_decl.go') 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 -- cgit v1.3