X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FARShiftU64.S;h=a41cfdb65c8c2c1d60f11e972067b3d3704b24bc;hp=426ce5bd264039cce520f712d762db56972239bd;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/ARShiftU64.S b/MdePkg/Library/BaseLib/Ia32/ARShiftU64.S index 426ce5bd26..a41cfdb65c 100644 --- a/MdePkg/Library/BaseLib/Ia32/ARShiftU64.S +++ b/MdePkg/Library/BaseLib/Ia32/ARShiftU64.S @@ -19,21 +19,23 @@ # #------------------------------------------------------------------------------ - - - - .global _InternalMathARShiftU64 -_InternalMathARShiftU64: - movb 12(%esp),%cl - movl 8(%esp),%eax + +#------------------------------------------------------------------------------ +# UINT64 +# EFIAPI +# InternalMathARShiftU64 ( +# IN UINT64 Operand, +# IN UINTN Count +# ); +#------------------------------------------------------------------------------ +_InternalMathARShiftU64: + movb 12(%esp), %cl + movl 8(%esp), %eax cltd - testb $32,%cl + testb $32, %cl cmovz %eax, %edx cmovz 4(%esp), %eax - shrdl %cl,%edx,%eax - sar %cl,%edx + shrdl %cl, %edx, %eax + sar %cl, %edx ret - - -