public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Fix minor issues in memchr NEON implementation
@ 2017-06-07 10:16 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-06-07 10:16 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=21ff2cf9306d59508386919ec9770035f0783ad1

commit 21ff2cf9306d59508386919ec9770035f0783ad1
Author: Prakhar Bahuguna <prakhar.bahuguna@arm.com>
Date:   Fri Jun 2 10:22:32 2017 +0100

    Fix minor issues in memchr NEON implementation

Diff:
---
 newlib/libc/machine/arm/memchr.S | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-07 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-07 10:16 [newlib-cygwin] Fix minor issues in memchr NEON implementation Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).