TianoCore EDK2
master
Loading...
Searching...
No Matches
GetPowerOfTwo64.c
Go to the documentation of this file.
1
9
#include "
BaseLibInternals.h
"
10
24
UINT64
25
EFIAPI
26
GetPowerOfTwo64
(
27
IN
UINT64 Operand
28
)
29
{
30
if
(Operand == 0) {
31
return
0;
32
}
33
34
return
LShiftU64
(1, (
UINTN
)
HighBitSet64
(Operand));
35
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
LShiftU64
UINT64 EFIAPI LShiftU64(IN UINT64 Operand, IN UINTN Count)
Definition:
LShiftU64.c:28
HighBitSet64
INTN EFIAPI HighBitSet64(IN UINT64 Operand)
Definition:
HighBitSet64.c:27
BaseLibInternals.h
GetPowerOfTwo64
UINT64 EFIAPI GetPowerOfTwo64(IN UINT64 Operand)
Definition:
GetPowerOfTwo64.c:26
IN
#define IN
Definition:
Base.h:279
MdePkg
Library
BaseLib
GetPowerOfTwo64.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6