diff options
author | Prakhar Bahuguna <prakhar.bahuguna@arm.com> | 2017-06-02 10:22:32 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-06-07 12:16:15 +0200 |
commit | 21ff2cf9306d59508386919ec9770035f0783ad1 (patch) | |
tree | 1dd1c3bb56b58611e9d1dfa10825ac6b9e1c2575 /newlib/libc/machine | |
parent | beb17b264b69e35763fbdf0a68fbf67343cfbb58 (diff) | |
download | newlib-21ff2cf9306d59508386919ec9770035f0783ad1.zip newlib-21ff2cf9306d59508386919ec9770035f0783ad1.tar.gz newlib-21ff2cf9306d59508386919ec9770035f0783ad1.tar.bz2 |
Fix minor issues in memchr NEON implementation
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/arm/memchr.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S index b5dcf83..7c22b11 100644 --- a/newlib/libc/machine/arm/memchr.S +++ b/newlib/libc/machine/arm/memchr.S @@ -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. */ |