X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FLRotU64.asm;h=a6437d868f80fcb34e20d04dc7a6bdbac411989b;hp=1d5562a799c7d1d93336907da0c37d65ed86fd7a;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/LRotU64.asm b/MdePkg/Library/BaseLib/Ia32/LRotU64.asm index 1d5562a799..a6437d868f 100644 --- a/MdePkg/Library/BaseLib/Ia32/LRotU64.asm +++ b/MdePkg/Library/BaseLib/Ia32/LRotU64.asm @@ -23,6 +23,14 @@ .model flat,C .code +;------------------------------------------------------------------------------ +; UINT64 +; EFIAPI +; InternalMathLRotU64 ( +; IN UINT64 Operand, +; IN UINTN Count +; ); +;------------------------------------------------------------------------------ InternalMathLRotU64 PROC USES ebx mov cl, [esp + 16] mov edx, [esp + 12] @@ -31,7 +39,7 @@ InternalMathLRotU64 PROC USES ebx shld edx, eax, cl ror ebx, cl shld eax, ebx, cl - test cl, 32 + test cl, 32 ; Count >= 32? cmovnz ecx, eax cmovnz eax, edx cmovnz edx, ecx