]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/RShiftU64.S
Use ASM_PFX to optionnaly set the underscore prefix
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / RShiftU64.S
index f6c28dee965b60fd605a33d20e7f2bf28876e760..ca78394e39ffc2ccd1b8624036381561951739c7 100644 (file)
 #
 #------------------------------------------------------------------------------
 
-    .686: 
-    .code: 
+    .686:
+    .code:
 
-.global _InternalMathRShiftU64
-_InternalMathRShiftU64:
-    movb    12(%esp),%cl
-    xorl    %edx,%edx
-    movl    8(%esp),%eax
-    testb   $32,%cl
+.globl ASM_PFX(InternalMathRShiftU64)
+
+#------------------------------------------------------------------------------
+# UINT64
+# EFIAPI
+# InternalMathRShiftU64 (
+#   IN      UINT64                    Operand,
+#   IN      UINTN                     Count
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(InternalMathRShiftU64):
+    movb    12(%esp), %cl
+    xorl    %edx, %edx
+    movl    8(%esp), %eax
+    testb   $32, %cl
     cmovz   %eax, %edx
     cmovz   0x4(%esp), %eax
-    shrdl   %cl,%edx,%eax
-    shr     %cl,%edx
+    shrdl   %cl, %edx, %eax
+    shr     %cl, %edx
     ret