diff options
| author | skrll <skrll@NetBSD.org> | 2022-12-03 11:30:24 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2022-12-03 11:30:24 +0000 |
| commit | 86a45abba37bfb65913a24c79f0cd49eeff4bdb6 (patch) | |
| tree | 01a695d2aa8c1ce6f012d412188386aa5180ae88 /common/lib/libc | |
| parent | 06eb1fa17a4100fcc79f82027ea8828e7edd4f45 (diff) | |
improve a comment
Diffstat (limited to 'common/lib/libc')
| -rw-r--r-- | common/lib/libc/arch/arm/string/strlen_naive.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/lib/libc/arch/arm/string/strlen_naive.S b/common/lib/libc/arch/arm/string/strlen_naive.S index 557ace97c74..9502e171879 100644 --- a/common/lib/libc/arch/arm/string/strlen_naive.S +++ b/common/lib/libc/arch/arm/string/strlen_naive.S @@ -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 @@ ENTRY(strnlen) #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 */ |
