improve a comment
This commit is contained in:
parent
6fdcdfd2f9
commit
4d1fd956cd
|
@ -28,7 +28,7 @@
|
||||||
*/
|
*/
|
||||||
#include <machine/asm.h>
|
#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
|
#ifdef STRNLEN
|
||||||
/* LINTSTUB: size_t strnlen(const char *, size_t) */
|
/* LINTSTUB: size_t strnlen(const char *, size_t) */
|
||||||
|
@ -40,7 +40,7 @@ ENTRY(strnlen)
|
||||||
#else
|
#else
|
||||||
adds ip, r0, r1 /* &src[maxlen] */
|
adds ip, r0, r1 /* &src[maxlen] */
|
||||||
#endif
|
#endif
|
||||||
1: cmp r0, ip /* is this of string? */
|
1: cmp r0, ip /* is this the end of string? */
|
||||||
beq 2f /* yes it is */
|
beq 2f /* yes it is */
|
||||||
#ifdef __thumb__
|
#ifdef __thumb__
|
||||||
ldrb r2, [r0] /* read a byte */
|
ldrb r2, [r0] /* read a byte */
|
||||||
|
|
Loading…
Reference in New Issue