summaryrefslogtreecommitdiff
path: root/MdePkg/Library/BaseLib/Ia32/RRotU64.S
diff options
context:
space:
mode:
Diffstat (limited to 'MdePkg/Library/BaseLib/Ia32/RRotU64.S')
-rw-r--r--MdePkg/Library/BaseLib/Ia32/RRotU64.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Library/BaseLib/Ia32/RRotU64.S b/MdePkg/Library/BaseLib/Ia32/RRotU64.S
index 4b987478a0..cc5807648a 100644
--- a/MdePkg/Library/BaseLib/Ia32/RRotU64.S
+++ b/MdePkg/Library/BaseLib/Ia32/RRotU64.S
@@ -38,8 +38,8 @@ ASM_PFX(InternalMathRRotU64):
shrdl %cl, %edx, %eax
roll %cl, %ebx
shrdl %cl, %ebx, %edx
- testb $32, %cl
- cmovnz %eax, %ecx
+ testb $32, %cl # Count >= 32?
+ cmovnz %eax, %ecx # switch eax & edx if Count >= 32
cmovnz %edx, %eax
cmovnz %ecx, %edx
pop %ebx