]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/LShiftU64.S
Use ASM_PFX to optionnaly set the underscore prefix
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / LShiftU64.S
index 4aa17c637dfdbafca4e9b85777719f9d4b4a22de..a4b99eb80a128a1f5b372e421836fbd0a509dea8 100644 (file)
 #
 #------------------------------------------------------------------------------
 
-    .686: 
-    #.MODEL flat,C
-    .code: 
+.globl ASM_PFX(InternalMathLShiftU64)
 
-.global _InternalMathLShiftU64
-_InternalMathLShiftU64:
+#------------------------------------------------------------------------------
+# UINT64
+# EFIAPI
+# InternalMathLShiftU64 (
+#   IN      UINT64                    Operand,
+#   IN      UINTN                     Count
+#   );
+#------------------------------------------------------------------------------
+ASM_PFX(InternalMathLShiftU64):
     movb    12(%esp), %cl
     xorl    %eax, %eax
     movl    4(%esp), %edx
     testb   $32, %cl
     cmovz   %edx, %eax
     cmovz   0x8(%esp), %edx
-    shld    %cl,%eax,%edx
+    shld    %cl, %eax, %edx
     shl     %cl, %eax
     ret