diff options
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S index dd7c1b8634..2e59c8dd52 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.S @@ -3,7 +3,7 @@ #
#------------------------------------------------------------------------------
#
-# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -45,11 +45,11 @@ ASM_GLOBAL ASM_PFX(InternalMemScanMem64)
ASM_PFX(InternalMemScanMem64):
pushq %rdi
- movq %rcx, %rdi
- movq %r8, %rax
- movq %rdx, %rcx
+ movq %rcx, %rdi
+ movq %r8, %rax
+ movq %rdx, %rcx
repne scasq
leaq -8(%rdi), %rax
- cmovnz %rcx, %rax
+ cmovnz %rcx, %rax
popq %rdi
ret
|