Fix typos found by Giorgos Keramid and Steve Kargl on freebsd-arch mailing

list.
This commit is contained in:
rpaulo 2005-08-02 14:20:49 +00:00
parent 969266b7d7
commit 270bc85b33
4 changed files with 12 additions and 12 deletions

View File

@ -6,14 +6,14 @@
#include <machine/asm.h> #include <machine/asm.h>
#if defined(LIBC_SCCS) #if defined(LIBC_SCCS)
RCSID("$NetBSD: memchr.S,v 1.3 2004/07/19 20:04:41 drochner Exp $") RCSID("$NetBSD: memchr.S,v 1.4 2005/08/02 14:20:49 rpaulo Exp $")
#endif #endif
ENTRY(memchr) ENTRY(memchr)
movzbq %sil,%rcx movzbq %sil,%rcx
/* /*
* Align to word boundry * Align to word boundary.
* Consider unrolling loop? * Consider unrolling loop?
*/ */
testq %rdx,%rdx /* nbytes == 0? */ testq %rdx,%rdx /* nbytes == 0? */

View File

@ -6,7 +6,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#if defined(LIBC_SCCS) #if defined(LIBC_SCCS)
RCSID("$NetBSD: strcmp.S,v 1.3 2004/07/19 20:04:41 drochner Exp $") RCSID("$NetBSD: strcmp.S,v 1.4 2005/08/02 14:20:49 rpaulo Exp $")
#endif #endif
ENTRY(strcmp) ENTRY(strcmp)
@ -28,7 +28,7 @@ ENTRY(strcmp)
jmp .Ldone jmp .Ldone
/* /*
* Check whether s2 is aligned to a word boundry. If it is, we * Check whether s2 is aligned to a word boundary. If it is, we
* can compare by words. Otherwise we have to compare by bytes. * can compare by words. Otherwise we have to compare by bytes.
*/ */
.Ls1aligned: .Ls1aligned:

View File

@ -6,7 +6,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#if defined(LIBC_SCCS) #if defined(LIBC_SCCS)
RCSID("$NetBSD: strlen.S,v 1.3 2004/07/19 20:04:41 drochner Exp $") RCSID("$NetBSD: strlen.S,v 1.4 2005/08/02 14:20:49 rpaulo Exp $")
#endif #endif
ENTRY(strlen) ENTRY(strlen)
@ -38,10 +38,10 @@ ENTRY(strlen)
* original word is zero. * original word is zero.
* *
* It also has the useful property that bytes in the result word * It also has the useful property that bytes in the result word
* that coorespond to non-zero bytes in the original word have * that correspond to non-zero bytes in the original word have
* the value 0x00, while bytes cooresponding to zero bytes have * the value 0x00, while bytes corresponding to zero bytes have
* the value 0x80. This allows calculation of the first (and * the value 0x80. This allows calculation of the first (and
* last) occurance of a zero byte within the word (useful for C's * last) occurrence of a zero byte within the word (useful for C's
* str* primitives) by counting the number of leading (or * str* primitives) by counting the number of leading (or
* trailing) zeros and dividing the result by 8. On machines * trailing) zeros and dividing the result by 8. On machines
* without (or with slow) clz() / ctz() instructions, testing * without (or with slow) clz() / ctz() instructions, testing
@ -59,10 +59,10 @@ ENTRY(strlen)
* original word is zero. * original word is zero.
* *
* On little endian machines, the first byte in the result word * On little endian machines, the first byte in the result word
* that cooresponds to a zero byte in the original byte is 0x80, * that corresponds to a zero byte in the original byte is 0x80,
* so clz() can be used as above. On big endian machines, and * so clz() can be used as above. On big endian machines, and
* little endian machines without (or with a slow) clz() insn, * little endian machines without (or with a slow) clz() insn,
* testing each byte in the original for zero is necessary * testing each byte in the original for zero is necessary.
* *
* This typically takes 3 instructions (4 on machines without * This typically takes 3 instructions (4 on machines without
* "and with complement") not including those needed to load * "and with complement") not including those needed to load

View File

@ -6,7 +6,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#if defined(LIBC_SCCS) #if defined(LIBC_SCCS)
RCSID("$NetBSD: swab.S,v 1.2 2003/07/26 19:24:40 salo Exp $") RCSID("$NetBSD: swab.S,v 1.3 2005/08/02 14:20:49 rpaulo Exp $")
#endif #endif
#define LOAD_SWAP_STORE_WORD \ #define LOAD_SWAP_STORE_WORD \
@ -20,7 +20,7 @@ ENTRY(swab)
shrq $1,%rdx shrq $1,%rdx
testq $7,%rdx # copy first group of 1 to 7 words testq $7,%rdx # copy first group of 1 to 7 words
jz L2 # while swaping alternate bytes. jz L2 # while swapping alternate bytes.
L1: lodsw L1: lodsw
rorw $8,%ax rorw $8,%ax
stosw stosw