Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/i386/string Fix typos found by Giorgos Keramid...



details:   https://anonhg.NetBSD.org/src/rev/54f35d5b481f
branches:  trunk
changeset: 583370:54f35d5b481f
user:      rpaulo <rpaulo%NetBSD.org@localhost>
date:      Tue Aug 02 14:25:40 2005 +0000

description:
Fix typos found by Giorgos Keramid and Steve Kargl on freebsd-arch mailing
list. They were found on libc x86_64 MD code, but I noticed that they are
present on i386 too.

diffstat:

 lib/libc/arch/i386/string/memchr.S |   4 ++--
 lib/libc/arch/i386/string/strcmp.S |   4 ++--
 lib/libc/arch/i386/string/strlen.S |  12 ++++++------
 lib/libc/arch/i386/string/swab.S   |   4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)

diffs (102 lines):

diff -r cd2a159863c3 -r 54f35d5b481f lib/libc/arch/i386/string/memchr.S
--- a/lib/libc/arch/i386/string/memchr.S        Tue Aug 02 14:20:49 2005 +0000
+++ b/lib/libc/arch/i386/string/memchr.S        Tue Aug 02 14:25:40 2005 +0000
@@ -6,7 +6,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: memchr.S,v 1.14 2005/02/09 18:15:16 christos Exp $")
+       RCSID("$NetBSD: memchr.S,v 1.15 2005/08/02 14:25:40 rpaulo Exp $")
 #endif
 
 ENTRY(memchr)
@@ -16,7 +16,7 @@
        movl    16(%esp),%esi
 
        /*
-        * Align to word boundry
+        * Align to word boundary. 
         * Consider unrolling loop?
         */
        testl   %esi,%esi       /* nbytes == 0? */
diff -r cd2a159863c3 -r 54f35d5b481f lib/libc/arch/i386/string/strcmp.S
--- a/lib/libc/arch/i386/string/strcmp.S        Tue Aug 02 14:20:49 2005 +0000
+++ b/lib/libc/arch/i386/string/strcmp.S        Tue Aug 02 14:25:40 2005 +0000
@@ -6,7 +6,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: strcmp.S,v 1.16 2005/02/09 18:15:16 christos Exp $")
+       RCSID("$NetBSD: strcmp.S,v 1.17 2005/08/02 14:25:40 rpaulo Exp $")
 #endif
 
 ENTRY(strcmp)
@@ -33,7 +33,7 @@
        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.
         */
 .Ls1aligned:
diff -r cd2a159863c3 -r 54f35d5b481f lib/libc/arch/i386/string/strlen.S
--- a/lib/libc/arch/i386/string/strlen.S        Tue Aug 02 14:20:49 2005 +0000
+++ b/lib/libc/arch/i386/string/strlen.S        Tue Aug 02 14:25:40 2005 +0000
@@ -6,7 +6,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: strlen.S,v 1.10 2005/02/09 18:15:16 christos Exp $")
+       RCSID("$NetBSD: strlen.S,v 1.11 2005/08/02 14:25:40 rpaulo Exp $")
 #endif
 
 ENTRY(strlen)
@@ -35,10 +35,10 @@
         * original word is zero.
         *
         * It also has the useful property that bytes in the result word
-        * that coorespond to non-zero bytes in the original word have
-        * the value 0x00, while bytes cooresponding to zero bytes have
+        * that correspond to non-zero bytes in the original word have
+        * the value 0x00, while bytes corresponding to zero bytes have
         * 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
         * trailing) zeros and dividing the result by 8.  On machines
         * without (or with slow) clz() / ctz() instructions, testing
@@ -56,10 +56,10 @@
         * original word is zero.
         *
         * 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
         * 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
         * "and with complement") not including those needed to load
diff -r cd2a159863c3 -r 54f35d5b481f lib/libc/arch/i386/string/swab.S
--- a/lib/libc/arch/i386/string/swab.S  Tue Aug 02 14:20:49 2005 +0000
+++ b/lib/libc/arch/i386/string/swab.S  Tue Aug 02 14:25:40 2005 +0000
@@ -6,7 +6,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS)
-       RCSID("$NetBSD: swab.S,v 1.11 2003/07/26 19:24:36 salo Exp $")
+       RCSID("$NetBSD: swab.S,v 1.12 2005/08/02 14:25:40 rpaulo Exp $")
 #endif
 
 /*
@@ -26,7 +26,7 @@
 
        shrl    $1,%ecx
        testl   $7,%ecx                 # copy first group of 1 to 7 words
-       jz      L2                      # while swaping alternate bytes.
+       jz      L2                      # while swapping alternate bytes.
        _ALIGN_TEXT,0x90
 L1:    lodsw
        rorw    $8,%ax



Home | Main Index | Thread Index | Old Index