built on arm64
This commit is contained in:
parent
235bcd7a0c
commit
a0ee8f6e0b
3 changed files with 20 additions and 5 deletions
|
|
@ -3,11 +3,11 @@
|
|||
#include "textflag.h"
|
||||
|
||||
TEXT ·countNewlinesASM(SB),NOSPLIT,$0
|
||||
MOVQ src+0(FP), R1
|
||||
MOVQ len+8(FP), R2
|
||||
MOVD src+0(FP), R1
|
||||
MOVD len+8(FP), R2
|
||||
|
||||
MOVD ZR, R0
|
||||
VMOVI $0x0A V23.B16
|
||||
VMOVI $0x0A, V23.B16
|
||||
|
||||
CMP $16, R2
|
||||
BLT tail
|
||||
|
|
@ -65,7 +65,8 @@ tail:
|
|||
next:
|
||||
|
||||
SUB $1, R2
|
||||
JNZ tail
|
||||
CMP ZR, R2
|
||||
BNE tail
|
||||
|
||||
|
||||
ret:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue