VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/ARShiftU64.c@ 80924

Last change on this file since 80924 was 80721, checked in by vboxsync, 6 years ago

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

  • Property svn:eol-style set to native
File size: 889 bytes
Line 
1/** @file
2 Math worker functions.
3
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#include "BaseLibInternals.h"
10
11/**
12 Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled
13 with the original integer's bit 63. The shifted value is returned.
14
15 This function shifts the 64-bit value Operand to the right by Count bits. The
16 high Count bits are set to bit 63 of Operand. The shifted value is returned.
17
18 If Count is greater than 63, then ASSERT().
19
20 @param Operand The 64-bit operand to shift right.
21 @param Count The number of bits to shift right.
22
23 @return Operand >> Count
24
25**/
26UINT64
27EFIAPI
28ARShiftU64 (
29 IN UINT64 Operand,
30 IN UINTN Count
31 )
32{
33 ASSERT (Count < 64);
34 return InternalMathARShiftU64 (Operand, Count);
35}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette