]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/LRotU64.c
2 64-bit left rotation for Ia32
4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 Rotates a 64-bit integer left between 0 and 63 bits, filling
11 the low bits with the high bits that were rotated.
13 This function rotates the 64-bit value Operand to the left by Count bits. The
14 low Count bits are fill with the high Count bits of Operand. The rotated
17 @param Operand The 64-bit operand to rotate left.
18 @param Count The number of bits to rotate left.
20 @return Operand <<< Count
31 mov cl
, byte ptr
[Count
]
32 mov edx
, dword ptr
[Operand
+ 4]
33 mov eax
, dword ptr
[Operand
+ 0]
38 test cl
, 32 ; Count
>= 32?