TianoCore EDK2 master
Loading...
Searching...
No Matches
RRotU32.c File Reference
#include "BaseLibInternals.h"

Go to the source code of this file.

Functions

UINT32 EFIAPI RRotU32 (IN UINT32 Operand, IN UINTN Count)
 

Detailed Description

Math worker functions.

Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file RRotU32.c.

Function Documentation

◆ RRotU32()

UINT32 EFIAPI RRotU32 ( IN UINT32  Operand,
IN UINTN  Count 
)

Rotates a 32-bit integer right between 0 and 31 bits, filling the high bits with the low bits that were rotated.

This function rotates the 32-bit value Operand to the right by Count bits. The high Count bits are fill with the low Count bits of Operand. The rotated value is returned.

If Count is greater than 31, then ASSERT().

Parameters
OperandThe 32-bit operand to rotate right.
CountThe number of bits to rotate right.
Returns
Operand >> Count.

Definition at line 29 of file RRotU32.c.