diff options
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S')
-rw-r--r-- | MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S index 05b6f6489a..93e6cc2f13 100644 --- a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.S +++ b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.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,12 +45,12 @@ ASM_GLOBAL ASM_PFX(InternalMemScanMem32)
ASM_PFX(InternalMemScanMem32):
pushq %rdi
- movq %rcx, %rdi
- movq %r8, %rax
- movq %rdx, %rcx
+ movq %rcx, %rdi
+ movq %r8, %rax
+ movq %rdx, %rcx
repne scasl
leaq -4(%rdi), %rax
- cmovnz %rcx, %rax
+ cmovnz %rcx, %rax
popq %rdi
ret
|