]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.S
MdePkg/BaseMemoryLibRepStr: Support IA32 processors without CMOVx
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibRepStr / Ia32 / ScanMem64.S
index b3435d7fc3f1b4d01a6deb7ef4ea89039ee71a0c..5224cf7153a399b2d462f1a2d466b1eb4f38c848 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
@@ -56,6 +56,8 @@ L0:
     jne     L0\r
 L1:\r
     leal    -8(%edi), %eax\r
-    cmovne  %ecx, %eax\r
+    jz      L2\r
+    movl    %ecx, %eax\r
+L2:    \r
     pop     %edi\r
     ret\r