]> sourceware.org Git - newlib-cygwin.git/commitdiff
Fix minor issues in memchr NEON implementation
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Fri, 2 Jun 2017 09:22:32 +0000 (10:22 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 7 Jun 2017 10:16:15 +0000 (12:16 +0200)
newlib/libc/machine/arm/memchr.S

index b5dcf83c0f38bb67f509e92e83bb88453e04ea33..7c22b117ee0f79cf0718336541337de9f59df9b7 100644 (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.  */
This page took 0.032632 seconds and 5 git commands to generate.