Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/m68k/string Another change by Hiroshi Horimoto.



details:   https://anonhg.NetBSD.org/src/rev/b3b26d1813fd
branches:  trunk
changeset: 499756:b3b26d1813fd
user:      is <is%NetBSD.org@localhost>
date:      Tue Nov 28 15:23:09 2000 +0000

description:
Another change by Hiroshi Horimoto.

diffstat:

 lib/libc/arch/m68k/string/strcmp.S |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (36 lines):

diff -r cba5b8ae97fa -r b3b26d1813fd lib/libc/arch/m68k/string/strcmp.S
--- a/lib/libc/arch/m68k/string/strcmp.S        Tue Nov 28 14:06:13 2000 +0000
+++ b/lib/libc/arch/m68k/string/strcmp.S        Tue Nov 28 15:23:09 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strcmp.S,v 1.14 1999/10/27 09:10:27 is Exp $   */
+/*     $NetBSD: strcmp.S,v 1.15 2000/11/28 15:23:09 is Exp $   */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 #include <machine/asm.h>
 
 #if defined(LIBC_SCCS) && !defined(lint)
-       RCSID("$NetBSD: strcmp.S,v 1.14 1999/10/27 09:10:27 is Exp $")
+       RCSID("$NetBSD: strcmp.S,v 1.15 2000/11/28 15:23:09 is Exp $")
 #endif /* LIBC_SCCS and not lint */
 
 ENTRY(strcmp)
@@ -67,13 +67,12 @@
        subb    %a1@+,%d1
        jeq     L1
 
-       scs     %d0
+L3:    scs     %d0
        extbl   %d0
        movb    %d1,%d0
        rts
 
-L2:    subb    %a1@,%d1
-L3:    scs     %d0
-       extbl   %d0
-       movb    %d1,%d0
+L2:    movq    #0,%d0
+       movb    %a1@,%d0
+       negl    %d0
        rts



Home | Main Index | Thread Index | Old Index