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 Save a jmp for memcpy(3).
details: https://anonhg.NetBSD.org/src/rev/64b77562e522
branches: trunk
changeset: 538754:64b77562e522
user: junyoung <junyoung%NetBSD.org@localhost>
date: Tue Oct 29 07:01:44 2002 +0000
description:
Save a jmp for memcpy(3).
diffstat:
lib/libc/arch/i386/string/bcopy.S | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c467262b077f -r 64b77562e522 lib/libc/arch/i386/string/bcopy.S
--- a/lib/libc/arch/i386/string/bcopy.S Tue Oct 29 06:53:18 2002 +0000
+++ b/lib/libc/arch/i386/string/bcopy.S Tue Oct 29 07:01:44 2002 +0000
@@ -36,7 +36,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
- RCSID("$NetBSD: bcopy.S,v 1.10 2002/10/29 06:53:18 junyoung Exp $")
+ RCSID("$NetBSD: bcopy.S,v 1.11 2002/10/29 07:01:44 junyoung Exp $")
#endif
/*
@@ -64,13 +64,15 @@
movl 16(%esp),%edi
#endif
movl 20(%esp),%ecx
-#if !defined(MEMCOPY)
+#if defined(MEMCOPY)
+ movl %ecx,%edx
+#else
movl %edi,%edx
subl %esi,%edx
cmpl %ecx,%edx /* overlapping? */
-#endif
movl %ecx,%edx
jb 1f
+#endif
cld /* nope, copy forwards. */
shrl $2,%ecx /* copy by words */
rep
Home |
Main Index |
Thread Index |
Old Index