X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FLRotU64.S;h=a9f72d8505533119cc679875817c90288fe4ec18;hp=54cdfadcc8f4a2234048071c7473dc9b5647ce72;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/LRotU64.S b/MdePkg/Library/BaseLib/Ia32/LRotU64.S index 54cdfadcc8..a9f72d8505 100644 --- a/MdePkg/Library/BaseLib/Ia32/LRotU64.S +++ b/MdePkg/Library/BaseLib/Ia32/LRotU64.S @@ -19,26 +19,28 @@ # #------------------------------------------------------------------------------ - - - - .global _InternalMathLRotU64 + +#------------------------------------------------------------------------------ +# UINT64 +# EFIAPI +# InternalMathLRotU64 ( +# IN UINT64 Operand, +# IN UINTN Count +# ); +#------------------------------------------------------------------------------ _InternalMathLRotU64: push %ebx - movb 16(%esp),%cl - movl 12(%esp),%edx - movl 8(%esp),%eax - shldl %cl,%edx,%ebx - shldl %cl,%eax,%edx - rorl %cl,%ebx - shldl %cl,%ebx,%eax - testb $32,%cl + movb 16(%esp), %cl + movl 12(%esp), %edx + movl 8(%esp), %eax + shldl %cl, %edx, %ebx + shldl %cl, %eax, %edx + rorl %cl, %ebx + shldl %cl, %ebx, %eax + testb $32, %cl cmovnz %eax, %ecx - cmovnz %edx, %eax + cmovnz %edx, %eax cmovnz %ecx, %edx pop %ebx ret - - -