1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build 386 || amd64 || s390x || arm || arm64 || loong64 || ppc64 || ppc64le || mips || mipsle || wasm || mips64 || mips64le || riscv64
6
7package bytealg
8
9import _ "unsafe" // For go:linkname
10
11//go:noescape
12func Compare(a, b []byte) int
13
14func CompareString(a, b string) int {
15	return abigen_runtime_cmpstring(a, b)
16}
17
18// The declaration below generates ABI wrappers for functions
19// implemented in assembly in this package but declared in another
20// package.
21
22//go:linkname abigen_runtime_cmpstring runtime.cmpstring
23func abigen_runtime_cmpstring(a, b string) int
24