]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.asm
MdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / ScanMem64.asm
index 0a0f5d0468577eb52b54ea5c762184bee803319b..96e3b99f7260858cdf49342361a5a23015af0703 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
 ; This program and the accompanying materials\r
 ; are licensed and made available under the terms and conditions of the BSD License\r
 ; which accompanies this distribution.  The full text of the license may be found at\r
@@ -57,7 +57,9 @@ InternalMemScanMem64    PROC    USES    edi
     jne     @B\r
 @@:\r
     lea     eax, [edi - 8]\r
-    cmovne  eax, ecx\r
+    jz      @F\r
+    mov     eax, ecx\r
+@@:    \r
     ret\r
 InternalMemScanMem64    ENDP\r
 \r