diff options
| author | Keith Randall <khr@golang.org> | 2018-03-03 14:24:54 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2018-03-04 17:49:39 +0000 |
| commit | f6332bb84ad87e958290ae23b29a2b13a41ee2a2 (patch) | |
| tree | f09ef9174bee3ae86920a113318f4a322a1a98ad /src/internal/bytealg/compare_native.go | |
| parent | 45964e4f9c950863adcaeb62fbe49f3fa913f27d (diff) | |
| download | go-f6332bb84ad87e958290ae23b29a2b13a41ee2a2.tar.xz | |
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/internal/bytealg/compare_native.go')
| -rw-r--r-- | src/internal/bytealg/compare_native.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/internal/bytealg/compare_native.go b/src/internal/bytealg/compare_native.go new file mode 100644 index 0000000000..8ffade55be --- /dev/null +++ b/src/internal/bytealg/compare_native.go @@ -0,0 +1,10 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// +build 386 amd64 amd64p32 s390x arm arm64 ppc64 ppc64le mips mipsle + +package bytealg + +//go:noescape +func Compare(a, b []byte) int |
