Convert some more conditional instructions to unified syntax

This commit is contained in:
matt 2013-08-11 05:02:35 +00:00
parent 015cebed78
commit 47ead0f271
3 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $ */
/* $NetBSD: ffs.S,v 1.3 2013/08/11 05:02:35 matt Exp $ */
/*
* Copyright (c) 2001 Christopher Gilbert
* All rights reserved.
@ -30,7 +30,7 @@
#include <machine/asm.h>
RCSID("$NetBSD: ffs.S,v 1.2 2011/07/03 07:13:31 matt Exp $")
RCSID("$NetBSD: ffs.S,v 1.3 2013/08/11 05:02:35 matt Exp $")
/*
* ffs - find first set bit, this algorithm isolates the first set
@ -67,7 +67,7 @@ ENTRY(ffs)
rsbne r0, r0, r0, lsl #16 /* r0 = X * 0x0450fbaf */
/* now lookup in table indexed on top 6 bits of r0 */
ldrneb r0, [ r2, r0, lsr #26 ]
ldrbne r0, [ r2, r0, lsr #26 ]
RET
.text;

View File

@ -28,7 +28,7 @@
*/
#include <machine/asm.h>
RCSID("$NetBSD: strcpy_naive.S,v 1.2 2013/01/10 02:08:22 matt Exp $")
RCSID("$NetBSD: strcpy_naive.S,v 1.3 2013/08/11 05:02:35 matt Exp $")
#ifdef _LIBC
#ifdef STRLCPY
@ -76,7 +76,7 @@ ENTRY(strncpy)
teq r3, #0 /* was it a NUL? */
bne 1b /* no, try next byte */
2: cmp ip, r2 /* are at the end of dst already? */
strltb r3, [ip], #1 /* no, write a NUL */
strblt r3, [ip], #1 /* no, write a NUL */
blt 2b /* until dst is filled */
3: RET /* return dst pointer */
END(strncpy)

View File

@ -29,7 +29,7 @@
#include <machine/asm.h>
RCSID("$NetBSD: strlcat_naive.S,v 1.1 2013/01/18 22:49:11 matt Exp $")
RCSID("$NetBSD: strlcat_naive.S,v 1.2 2013/08/11 05:02:35 matt Exp $")
/* LINTSTUB: size_t strlcat(char *, const char *, size_t) */
ENTRY(strlcat)
@ -51,7 +51,7 @@ ENTRY(strlcat)
beq 3f /* yes, end of append */
add r0, r0, #1 /* count another byte */
cmp ip, r3 /* do we have enough room for it? */
strltb r2, [ip], #1 /* yes, store it */
strblt r2, [ip], #1 /* yes, store it */
b 2b /* get next byte from append */
3: mov r2, #0 /* NUL */