File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -157,24 +157,28 @@ copy_literal:
157
157
CMPQ BX, R8
158
158
JA err_short_buf
159
159
160
- // whats a good cut off to call memmove?
161
- CMPQ CX, $16
160
+ // Copy matches of <=48 bytes through the XMM registers.
161
+ CMPQ CX, $48
162
162
JGT memmove_lit
163
163
164
- // if len(dst[di:]) < 16
164
+ // if len(dst[di:]) < 48
165
165
MOVQ R8, AX
166
166
SUBQ DI, AX
167
- CMPQ AX, $16
167
+ CMPQ AX, $48
168
168
JLT memmove_lit
169
169
170
- // if len(src[si:]) < 16
171
- MOVQ R9, AX
172
- SUBQ SI, AX
173
- CMPQ AX , $16
170
+ // if len(src[si:]) < 48
171
+ MOVQ R9, BX
172
+ SUBQ SI, BX
173
+ CMPQ BX , $48
174
174
JLT memmove_lit
175
175
176
176
MOVOU (SI), X0
177
+ MOVOU 16 (SI), X1
178
+ MOVOU 32 (SI), X2
177
179
MOVOU X0, (DI)
180
+ MOVOU X1, 16 (DI)
181
+ MOVOU X2, 32 (DI)
178
182
179
183
ADDQ CX, SI
180
184
ADDQ CX, DI
You can’t perform that action at this time.
0 commit comments