]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/RRotU64.c
MdePkg/BaseLib: Support IA32 processors without CMOVx
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / RRotU64.c
index f6ee6d65eb75fca557d00b7069010ba34d7cda7a..17fde84b9d7a905e72eb87e4dc80e4aa0b8d69b1 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   64-bit right rotation for Ia32\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
@@ -45,9 +45,11 @@ InternalMathRRotU64 (
     rol     ebx, cl\r
     shrd    edx, ebx, cl\r
     test    cl, 32                      // Count >= 32?\r
-    cmovnz  ecx, eax\r
-    cmovnz  eax, edx\r
-    cmovnz  edx, ecx\r
+    jz      L0\r
+    mov     ecx, eax\r
+    mov     eax, edx\r
+    mov     edx, ecx\r
+L0:\r
   }\r
 }\r
 \r