]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/ARShiftU64.c
2 64-bit arithmetic right 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 right between 0 and 63 bits. The high bits
14 are filled with original integer's bit 63. The shifted value is returned.
16 This function shifts the 64-bit value Operand to the right by Count bits. The
17 high Count bits are set to bit 63 of Operand. The shifted value is returned.
19 @param Operand The 64-bit operand to shift right.
20 @param Count The number of bits to shift right.
22 @return Operand arithmetically shifted right by Count.
27 InternalMathARShiftU64 (
33 mov cl
, byte ptr
[Count
]
34 mov eax
, dword ptr
[Operand
+ 4]
39 mov eax
, dword ptr
[Operand
+ 0]