X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FDivU64x32.S;h=0c7829f23eab32035d91cadeb82f39900c6ce619;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hp=89d754614afd81759222eb273c7e51b843cd741d;hpb=975201130c7223ef29be7a28500ed107623fc4be;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x32.S b/MdePkg/Library/BaseLib/Ia32/DivU64x32.S index 89d754614a..0c7829f23e 100644 --- a/MdePkg/Library/BaseLib/Ia32/DivU64x32.S +++ b/MdePkg/Library/BaseLib/Ia32/DivU64x32.S @@ -19,17 +19,23 @@ # #------------------------------------------------------------------------------ - .386: - .code: - .global _InternalMathDivU64x32 + +#------------------------------------------------------------------------------ +# UINT64 +# EFIAPI +# InternalMathDivU64x32 ( +# IN UINT64 Dividend, +# IN UINT32 Divisor +# ); +#------------------------------------------------------------------------------ _InternalMathDivU64x32: - movl 8(%esp),%eax - movl 12(%esp),%ecx - xorl %edx,%edx + movl 8(%esp), %eax + movl 12(%esp), %ecx + xorl %edx, %edx divl %ecx - pushl %eax - movl 8(%esp),%eax + push %eax + movl 8(%esp), %eax divl %ecx - popl %edx + pop %edx ret