mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
bytes: annotate assembly functions with //go:noescape
R=golang-dev, agl, bradfitz, rsc CC=golang-dev https://golang.org/cl/7299064
This commit is contained in:
parent
705b4544d6
commit
691e5e3b01
2 changed files with 8 additions and 4 deletions
|
|
@ -37,10 +37,6 @@ func Compare(a, b []byte) int {
|
|||
return 0
|
||||
}
|
||||
|
||||
// Equal returns a boolean reporting whether a == b.
|
||||
// A nil argument is equivalent to an empty slice.
|
||||
func Equal(a, b []byte) bool
|
||||
|
||||
func equalPortable(a, b []byte) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue