Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Fix some comments



details:   https://anonhg.NetBSD.org/src/rev/f13785b1d170
branches:  trunk
changeset: 372502:f13785b1d170
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Dec 03 11:34:38 2022 +0000

description:
Fix some comments

diffstat:

 common/lib/libc/arch/arm/string/strlen_arm.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 8bdbf1880dd0 -r f13785b1d170 common/lib/libc/arch/arm/string/strlen_arm.S
--- a/common/lib/libc/arch/arm/string/strlen_arm.S      Sat Dec 03 11:30:24 2022 +0000
+++ b/common/lib/libc/arch/arm/string/strlen_arm.S      Sat Dec 03 11:34:38 2022 +0000
@@ -29,7 +29,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: strlen_arm.S,v 1.9 2014/05/06 16:02:11 joerg Exp $")
+RCSID("$NetBSD: strlen_arm.S,v 1.10 2022/12/03 11:34:38 skrll Exp $")
 
 #if defined(__thumb__) && !defined(_ARM_ARCH_T2)
 #error Only Thumb2 or ARM supported
@@ -121,9 +121,9 @@
         * (other tests for NULs in a word take more instructions/cycles).
         */
        tst     r3, #BYTE0              /* is this byte 0? */
-       tstne   r3, #BYTE1              /*   no, is this byte 0? */
-       tstne   r3, #BYTE2              /*   no, is this byte 0? */
-       tstne   r3, #BYTE3              /*   no, is this byte 0? */
+       tstne   r3, #BYTE1              /*   no, is this byte 1? */
+       tstne   r3, #BYTE2              /*   no, is this byte 2? */
+       tstne   r3, #BYTE3              /*   no, is this byte 3? */
        bne     .Lmain_loop             /*   no, then get next word */
 #endif
 #if defined(_ARM_ARCH_6)



Home | Main Index | Thread Index | Old Index