]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/LRotU64.S
1.Fix .global issue in GAS (EdkT207).
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / LRotU64.S
index 54cdfadcc8f4a2234048071c7473dc9b5647ce72..0208134556faa91eaf40a421fb176e11522950da 100644 (file)
 #\r
 #------------------------------------------------------------------------------\r
 \r
+.globl _InternalMathLRotU64\r
 \r
-\r
-     \r
-\r
-.global _InternalMathLRotU64\r
+#------------------------------------------------------------------------------\r
+# UINT64\r
+# EFIAPI\r
+# InternalMathLRotU64 (\r
+#   IN      UINT64                    Operand,\r
+#   IN      UINTN                     Count\r
+#   );\r
+#------------------------------------------------------------------------------\r
 _InternalMathLRotU64:\r
     push    %ebx\r
-    movb    16(%esp),%cl\r
-    movl    12(%esp),%edx\r
-    movl    8(%esp),%eax\r
-    shldl   %cl,%edx,%ebx\r
-    shldl   %cl,%eax,%edx\r
-    rorl    %cl,%ebx\r
-    shldl   %cl,%ebx,%eax\r
-    testb   $32,%cl\r
+    movb    16(%esp), %cl\r
+    movl    12(%esp), %edx\r
+    movl    8(%esp), %eax\r
+    shldl   %cl, %edx, %ebx\r
+    shldl   %cl, %eax, %edx\r
+    rorl    %cl, %ebx\r
+    shldl   %cl, %ebx, %eax\r
+    testb   $32, %cl\r
     cmovnz  %eax, %ecx\r
-    cmovnz  %edx, %eax \r
+    cmovnz  %edx, %eax\r
     cmovnz  %ecx, %edx\r
     pop     %ebx\r
     ret\r
-\r
-\r
-\r