| // Copyright 2013 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. |
| // Routines that are implemented in assembly in asm_{amd64,386,arm,arm64,ppc64x,s390x}.s |
| // These routines have corresponding stubs in stubs_asm.go. |
| // +build mips64 mips64le |
| import _ "unsafe" // for go:linkname |
| func cmpstring(s1, s2 string) int { |
| //go:linkname bytes_Compare bytes.Compare |
| func bytes_Compare(s1, s2 []byte) int { |
| if l == 0 || &s1[0] == &s2[0] { |