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

Go to the source code of this file.

Functions

UINT64 EFIAPI ARShiftU64 (IN UINT64 Operand, IN UINTN Count)
 

Detailed Description

Math worker functions.

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

Definition in file ARShiftU64.c.

Function Documentation

◆ ARShiftU64()

UINT64 EFIAPI ARShiftU64 ( IN UINT64  Operand,
IN UINTN  Count 
)

Shifts a 64-bit integer right between 0 and 63 bits. The high bits are filled with the original integer's bit 63. The shifted value is returned.

This function shifts the 64-bit value Operand to the right by Count bits. The high Count bits are set to bit 63 of Operand. The shifted value is returned.

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

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

Definition at line 28 of file ARShiftU64.c.