X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FMultU64x64.S;fp=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FMultU64x64.S;h=f2e55ad6cc9ea2885c644b0af082d3c1dc026f51;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hp=641b0d652ca664260d373239611ff7908a648677;hpb=31a9215c3223d3818d1709f39d06774e18df103f;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/MultU64x64.S b/MdePkg/Library/BaseLib/Ia32/MultU64x64.S index 641b0d652c..f2e55ad6cc 100644 --- a/MdePkg/Library/BaseLib/Ia32/MultU64x64.S +++ b/MdePkg/Library/BaseLib/Ia32/MultU64x64.S @@ -19,24 +19,26 @@ # #------------------------------------------------------------------------------ - - - - .global _InternalMathMultU64x64 -_InternalMathMultU64x64: + +#------------------------------------------------------------------------------ +# UINT64 +# EFIAPI +# InternalMathMultU64x64 ( +# IN UINT64 Multiplicand, +# IN UINT64 Multiplier +# ); +#------------------------------------------------------------------------------ +_InternalMathMultU64x64: push %ebx - movl 8(%esp),%ebx - movl 16(%esp),%edx - movl %ebx,%ecx - movl %edx,%eax - imull 20(%esp),%ebx - imull 12(%esp),%edx - addl %edx,%ebx + movl 8(%esp), %ebx + movl 16(%esp), %edx + movl %ebx, %ecx + movl %edx, %eax + imull 20(%esp), %ebx + imull 12(%esp), %edx + addl %edx, %ebx mull %ecx - addl %ebx,%edx + addl %ebx, %edx pop %ebx ret - - -