github.com/sandwichdev/go-internals@v0.0.0-20210605002614-12311ac6b2c5/bytealg/equal_native.go (about) 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 package bytealg 6 7 import "unsafe" 8 9 // The declarations below generate ABI wrappers for functions 10 // implemented in assembly in this package but declared in another 11 // package. 12 13 // The compiler generates calls to runtime.memequal and runtime.memequal_varlen. 14 // In addition, the runtime calls runtime.memequal explicitly. 15 // Those functions are implemented in this package. 16 17 //go:linkname abigen_runtime_memequal runtime.memequal 18 func abigen_runtime_memequal(a, b unsafe.Pointer, size uintptr) bool 19 20 //go:linkname abigen_runtime_memequal_varlen runtime.memequal_varlen 21 func abigen_runtime_memequal_varlen(a, b unsafe.Pointer) bool