1 // Copyright 2019 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.
8 TEXT ·IndexByte<ABIInternal>(SB),NOSPLIT,$0-40
11 // X12 = b_cap (unused)
14 MOV X10, X12 // store base for later
20 BEQ X10, X11, notfound
24 SUB X12, X10 // remove base
31 TEXT ·IndexByteString<ABIInternal>(SB),NOSPLIT,$0-32
36 MOV X10, X13 // store base for later
42 BEQ X10, X11, notfound
46 SUB X13, X10 // remove base