Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>2017-06-02 12:22:32 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-06-07 13:16:15 +0300
commit21ff2cf9306d59508386919ec9770035f0783ad1 (patch)
tree1dd1c3bb56b58611e9d1dfa10825ac6b9e1c2575 /newlib/libc/machine
parentbeb17b264b69e35763fbdf0a68fbf67343cfbb58 (diff)
Fix minor issues in memchr NEON implementation
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r--newlib/libc/machine/arm/memchr.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/machine/arm/memchr.S b/newlib/libc/machine/arm/memchr.S
index b5dcf83c0..7c22b117e 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. */