VirtualBox

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

最後變更 在這個檔案從107675是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 845 位元組
 
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 32-bit integer right between 0 and 31 bits, filling the high bits
13 with the low bits that were rotated.
14
15 This function rotates the 32-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 31, then ASSERT().
20
21 @param Operand The 32-bit operand to rotate right.
22 @param Count The number of bits to rotate right.
23
24 @return Operand >> Count.
25
26**/
27UINT32
28EFIAPI
29RRotU32 (
30 IN UINT32 Operand,
31 IN UINTN Count
32 )
33{
34 ASSERT (Count < 32);
35 return (Operand >> Count) | (Operand << (32 - Count));
36}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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