Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amd64/amd64 Move incq outside of the copy section. ...



details:   https://anonhg.NetBSD.org/src/rev/8438bb928fa8
branches:  trunk
changeset: 826269:8438bb928fa8
user:      maxv <maxv%NetBSD.org@localhost>
date:      Fri Aug 25 11:35:03 2017 +0000

description:
Move incq outside of the copy section. No functional change, reduces
my smap diff.

diffstat:

 sys/arch/amd64/amd64/copy.S |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 46317b1c546e -r 8438bb928fa8 sys/arch/amd64/amd64/copy.S
--- a/sys/arch/amd64/amd64/copy.S       Fri Aug 25 11:05:46 2017 +0000
+++ b/sys/arch/amd64/amd64/copy.S       Fri Aug 25 11:35:03 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copy.S,v 1.23 2017/08/25 11:05:46 maxv Exp $   */
+/*     $NetBSD: copy.S,v 1.24 2017/08/25 11:35:03 maxv Exp $   */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -259,10 +259,9 @@
        jae     1f
        movq    %rax,%rdx
        movq    %rax,%r8
+1:     incq    %rdx
 
 .Lcopyoutstr_start:
-1:     incq    %rdx
-
 1:     decq    %rdx
        jz      2f
        lodsb
@@ -300,10 +299,9 @@
        jae     1f
        movq    %rax,%rdx
        movq    %rax,%r8
+1:     incq    %rdx
 
 .Lcopyinstr_start:
-1:     incq    %rdx
-
 1:     decq    %rdx
        jz      2f
        lodsb



Home | Main Index | Thread Index | Old Index