Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern/arch/m68k Sync with libc: make function exit...
details: https://anonhg.NetBSD.org/src/rev/3b06c7a6de92
branches: trunk
changeset: 499757:3b06c7a6de92
user: is <is%NetBSD.org@localhost>
date: Tue Nov 28 15:26:34 2000 +0000
description:
Sync with libc: make function exit one instruction faster, and function one
instruction shorter (Horimoto).
diffstat:
sys/lib/libkern/arch/m68k/strcmp.S | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (36 lines):
diff -r b3b26d1813fd -r 3b06c7a6de92 sys/lib/libkern/arch/m68k/strcmp.S
--- a/sys/lib/libkern/arch/m68k/strcmp.S Tue Nov 28 15:23:09 2000 +0000
+++ b/sys/lib/libkern/arch/m68k/strcmp.S Tue Nov 28 15:26:34 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strcmp.S,v 1.6 1999/11/11 01:32:13 thorpej Exp $ */
+/* $NetBSD: strcmp.S,v 1.7 2000/11/28 15:26:34 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.6 1999/11/11 01:32:13 thorpej Exp $")
+ RCSID("$NetBSD: strcmp.S,v 1.7 2000/11/28 15:26:34 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