X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FRRotU64.asm;h=4c58878ace0d11f6f81fc53843378d3e2287b176;hp=062e201e8dfebb69a2ab310b4b174e5fea161e60;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/RRotU64.asm b/MdePkg/Library/BaseLib/Ia32/RRotU64.asm index 062e201e8d..4c58878ace 100644 --- a/MdePkg/Library/BaseLib/Ia32/RRotU64.asm +++ b/MdePkg/Library/BaseLib/Ia32/RRotU64.asm @@ -23,6 +23,14 @@ .model flat,C .code +;------------------------------------------------------------------------------ +; UINT64 +; EFIAPI +; InternalMathRRotU64 ( +; IN UINT64 Operand, +; IN UINTN Count +; ); +;------------------------------------------------------------------------------ InternalMathRRotU64 PROC USES ebx mov cl, [esp + 16] mov eax, [esp + 8] @@ -31,7 +39,7 @@ InternalMathRRotU64 PROC USES ebx shrd eax, edx, cl rol ebx, cl shrd edx, ebx, cl - test cl, 32 + test cl, 32 ; Count >= 32? cmovnz ecx, eax cmovnz eax, edx cmovnz edx, ecx