VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdePkg/Library/BaseLib/RRotU64.c@ 85716

Last change on this file since 85716 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: 876 bytes
Line 
1/** @file
2 Math worker functions.
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#include "BaseLibInternals.h"
10
11/**
12 Rotates a 64-bit integer right between 0 and 63 bits, filling the high bits
13 with the high low bits that were rotated.
14
15 This function rotates the 64-bit value Operand to the right by Count bits.
16 The high Count bits are fill with the low Count bits of Operand. The rotated
17 value is returned.
18
19 If Count is greater than 63, then ASSERT().
20
21 @param Operand The 64-bit operand to rotate right.
22 @param Count The number of bits to rotate right.
23
24 @return Operand >> Count.
25
26**/
27UINT64
28EFIAPI
29RRotU64 (
30 IN UINT64 Operand,
31 IN UINTN Count
32 )
33{
34 ASSERT (Count < 64);
35 return InternalMathRRotU64 (Operand, Count);
36}
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