Fix minor issues in memchr NEON implementation

This commit is contained in:
Prakhar Bahuguna 2017-06-02 10:22:32 +01:00 committed by Corinna Vinschen
parent beb17b264b
commit 21ff2cf930
1 changed files with 2 additions and 1 deletions

View File

@ -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. */