Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 Minor optimization: movl and andl are sli...
details: https://anonhg.NetBSD.org/src/rev/2bd312e565e8
branches: trunk
changeset: 538599:2bd312e565e8
user: junyoung <junyoung%NetBSD.org@localhost>
date: Wed Oct 23 03:28:34 2002 +0000
description:
Minor optimization: movl and andl are slightly faster than movb and andb,
respectively.
diffstat:
sys/arch/i386/i386/locore.s | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 649f7d572f7b -r 2bd312e565e8 sys/arch/i386/i386/locore.s
--- a/sys/arch/i386/i386/locore.s Wed Oct 23 02:32:36 2002 +0000
+++ b/sys/arch/i386/i386/locore.s Wed Oct 23 03:28:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.266 2002/10/23 00:58:28 christos Exp $ */
+/* $NetBSD: locore.s,v 1.267 2002/10/23 03:28:34 junyoung Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -1054,8 +1054,8 @@
shrl $2,%ecx
rep
movsl
- movb %al,%cl
- andb $3,%cl
+ movl %eax,%ecx
+ andl $3,%ecx
rep
movsb
@@ -1096,8 +1096,8 @@
shrl $2,%ecx
rep
movsl
- movb %al,%cl
- andb $3,%cl
+ movl %eax,%ecx
+ andl $3,%ecx
rep
movsb
@@ -1148,8 +1148,8 @@
shrl $2,%ecx
rep
movsl
- movb %al,%cl
- andb $3,%cl
+ movl %eax,%ecx
+ andl $3,%ecx
rep
movsb
Home |
Main Index |
Thread Index |
Old Index