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 improve a comment
details: https://anonhg.NetBSD.org/src/rev/8bdbf1880dd0
branches: trunk
changeset: 372501:8bdbf1880dd0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Dec 03 11:30:24 2022 +0000
description:
improve a comment
diffstat:
common/lib/libc/arch/arm/string/strlen_naive.S | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 37cab6084275 -r 8bdbf1880dd0 common/lib/libc/arch/arm/string/strlen_naive.S
--- a/common/lib/libc/arch/arm/string/strlen_naive.S Sat Dec 03 11:28:38 2022 +0000
+++ b/common/lib/libc/arch/arm/string/strlen_naive.S Sat Dec 03 11:30:24 2022 +0000
@@ -28,7 +28,7 @@
*/
#include <machine/asm.h>
-RCSID("$NetBSD: strlen_naive.S,v 1.8 2013/08/19 17:02:25 matt Exp $")
+RCSID("$NetBSD: strlen_naive.S,v 1.9 2022/12/03 11:30:24 skrll Exp $")
#ifdef STRNLEN
/* LINTSTUB: size_t strnlen(const char *, size_t) */
@@ -40,7 +40,7 @@
#else
adds ip, r0, r1 /* &src[maxlen] */
#endif
-1: cmp r0, ip /* is this of string? */
+1: cmp r0, ip /* is this the end of string? */
beq 2f /* yes it is */
#ifdef __thumb__
ldrb r2, [r0] /* read a byte */
Home |
Main Index |
Thread Index |
Old Index