X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FRShiftU64.S;h=3aea31b7ef1fc657a2c32df1995682780dab50e4;hp=f6c28dee965b60fd605a33d20e7f2bf28876e760;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/RShiftU64.S b/MdePkg/Library/BaseLib/Ia32/RShiftU64.S index f6c28dee96..3aea31b7ef 100644 --- a/MdePkg/Library/BaseLib/Ia32/RShiftU64.S +++ b/MdePkg/Library/BaseLib/Ia32/RShiftU64.S @@ -19,17 +19,26 @@ # #------------------------------------------------------------------------------ - .686: - .code: + .686: + .code: .global _InternalMathRShiftU64 + +#------------------------------------------------------------------------------ +# UINT64 +# EFIAPI +# InternalMathRShiftU64 ( +# IN UINT64 Operand, +# IN UINTN Count +# ); +#------------------------------------------------------------------------------ _InternalMathRShiftU64: - movb 12(%esp),%cl - xorl %edx,%edx - movl 8(%esp),%eax - testb $32,%cl + 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