Fix minor issues in memchr NEON implementation
This commit is contained in:
parent
beb17b264b
commit
21ff2cf930
|
@ -135,10 +135,11 @@ memchr:
|
|||
/* Use a simple loop if there are less than 8 bytes to search. */
|
||||
cmp cntin, #7
|
||||
bhi .Llargestr
|
||||
and chrin, chrin, #0xff
|
||||
|
||||
.Lsmallstr:
|
||||
subs cntin, cntin, #1
|
||||
blt .Lnotfound /* Return not found if reached end. */
|
||||
blo .Lnotfound /* Return not found if reached end. */
|
||||
ldrb tmp, [srcin], #1
|
||||
cmp tmp, chrin
|
||||
bne .Lsmallstr /* Loop again if not found. */
|
||||
|
|
Loading…
Reference in New Issue