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 memcpy(3) no longer deals with ove...
details: https://anonhg.NetBSD.org/src/rev/c467262b077f
branches: trunk
changeset: 538753:c467262b077f
user: junyoung <junyoung%NetBSD.org@localhost>
date: Tue Oct 29 06:53:18 2002 +0000
description:
memcpy(3) no longer deals with overlap case; it's now forward-only.
diffstat:
lib/libc/arch/i386/string/bcopy.S | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 4f1778b9c41d -r c467262b077f lib/libc/arch/i386/string/bcopy.S
--- a/lib/libc/arch/i386/string/bcopy.S Tue Oct 29 06:44:40 2002 +0000
+++ b/lib/libc/arch/i386/string/bcopy.S Tue Oct 29 06:53:18 2002 +0000
@@ -36,7 +36,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS)
- RCSID("$NetBSD: bcopy.S,v 1.9 2002/10/29 06:35:17 junyoung Exp $")
+ RCSID("$NetBSD: bcopy.S,v 1.10 2002/10/29 06:53:18 junyoung Exp $")
#endif
/*
@@ -64,9 +64,11 @@
movl 16(%esp),%edi
#endif
movl 20(%esp),%ecx
+#if !defined(MEMCOPY)
movl %edi,%edx
subl %esi,%edx
cmpl %ecx,%edx /* overlapping? */
+#endif
movl %ecx,%edx
jb 1f
cld /* nope, copy forwards. */
Home |
Main Index |
Thread Index |
Old Index