]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.S
1. Updated function headers in all assembly files.
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / DivU64x32Remainder.S
index 1f34f1825583757c9fb809bf4c3fe94b8facfe55..41537b05ec3b04aafbbda0433cd39e37a84170e8 100644 (file)
 #\r
 #------------------------------------------------------------------------------\r
 \r
-\r
-\r
-     \r
-\r
 .global _InternalMathDivRemU64x32\r
-_InternalMathDivRemU64x32: \r
-    movl    12(%esp),%ecx\r
-    movl    8(%esp),%eax\r
-    xorl    %edx,%edx\r
+\r
+#------------------------------------------------------------------------------\r
+# UINT64\r
+# EFIAPI\r
+# InternalMathDivRemU64x32 (\r
+#   IN      UINT64                    Dividend,\r
+#   IN      UINT32                    Divisor,\r
+#   OUT     UINT32                    *Remainder\r
+#   );\r
+#------------------------------------------------------------------------------\r
+_InternalMathDivRemU64x32:\r
+    movl    12(%esp), %ecx\r
+    movl    8(%esp), %eax\r
+    xorl    %edx, %edx\r
     divl    %ecx\r
-    pushl   %eax\r
-    movl    8(%esp),%eax\r
+    push    %eax\r
+    movl    8(%esp), %eax\r
     divl    %ecx\r
-    movl    20(%esp),%ecx\r
+    movl    20(%esp), %ecx\r
     jecxz   L1\r
-    movl    %edx,(%ecx)\r
-L1: \r
-    popl    %edx\r
+    movl    %edx, (%ecx)\r
+L1:\r
+    pop     %edx\r
     ret\r
-\r
-\r
-\r