TianoCore EDK2 master
Loading...
Searching...
No Matches
GetPowerOfTwo64.c
Go to the documentation of this file.
1
9#include "BaseLibInternals.h"
10
24UINT64
25EFIAPI
27 IN UINT64 Operand
28 )
29{
30 if (Operand == 0) {
31 return 0;
32 }
33
34 return LShiftU64 (1, (UINTN)HighBitSet64 (Operand));
35}
UINT64 UINTN
UINT64 EFIAPI LShiftU64(IN UINT64 Operand, IN UINTN Count)
Definition: LShiftU64.c:28
INTN EFIAPI HighBitSet64(IN UINT64 Operand)
Definition: HighBitSet64.c:27
UINT64 EFIAPI GetPowerOfTwo64(IN UINT64 Operand)
#define IN
Definition: Base.h:279