aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.20/src/internal/bytealg/compare_native.go
diff options
context:
space:
mode:
authoruzhas <uzhas@ydb.tech>2023-11-16 16:04:50 +0300
committeruzhas <uzhas@ydb.tech>2023-11-16 17:46:46 +0300
commit46f0c0079bb50609d2eeb6586642bcf114fc5239 (patch)
tree84e4e4978d57fe5de321ba69bf9d0c290de60a66 /contrib/go/_std_1.20/src/internal/bytealg/compare_native.go
parent73045e389397816cc2bdd6cd7818b4bce427b265 (diff)
downloadydb-46f0c0079bb50609d2eeb6586642bcf114fc5239.tar.gz
enable ya make for go projects
Diffstat (limited to 'contrib/go/_std_1.20/src/internal/bytealg/compare_native.go')
-rw-r--r--contrib/go/_std_1.20/src/internal/bytealg/compare_native.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/go/_std_1.20/src/internal/bytealg/compare_native.go b/contrib/go/_std_1.20/src/internal/bytealg/compare_native.go
new file mode 100644
index 0000000000..e016430075
--- /dev/null
+++ b/contrib/go/_std_1.20/src/internal/bytealg/compare_native.go
@@ -0,0 +1,20 @@
+// 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.
+
+//go:build 386 || amd64 || s390x || arm || arm64 || loong64 || ppc64 || ppc64le || mips || mipsle || wasm || mips64 || mips64le || riscv64
+
+package bytealg
+
+import _ "unsafe"
+// For go:linkname
+
+//go:noescape
+func Compare(a, b []byte) int
+
+// The declaration below generates ABI wrappers for functions
+// implemented in assembly in this package but declared in another
+// package.
+
+//go:linkname abigen_runtime_cmpstring runtime.cmpstring
+func abigen_runtime_cmpstring(a, b string) int