]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/LShiftU64.c
2 64-bit left shift function for IA-32.
4 Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
13 Shifts a 64-bit integer left between 0 and 63 bits. The low bits
14 are filled with zeros. The shifted value is returned.
16 This function shifts the 64-bit value Operand to the left by Count bits. The
17 low Count bits are set to zero. The shifted value is returned.
19 @param Operand The 64-bit operand to shift left.
20 @param Count The number of bits to shift left.
22 @return Operand << Count
27 InternalMathLShiftU64 (
33 mov cl
, byte ptr
[Count
]
35 mov edx
, dword ptr
[Operand
+ 0]
36 test cl
, 32 // Count >= 32?
39 mov edx
, dword ptr
[Operand
+ 4]