TianoCore EDK2 master
|
#include "BaseLibInternals.h"
Go to the source code of this file.
Functions | |
UINT64 EFIAPI | GetPowerOfTwo64 (IN UINT64 Operand) |
Math worker functions.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file GetPowerOfTwo64.c.
UINT64 EFIAPI GetPowerOfTwo64 | ( | IN UINT64 | Operand | ) |
Returns the value of the highest bit set in a 64-bit value. Equivalent to 1 << log2(x).
This function computes the value of the highest bit set in the 64-bit value specified by Operand. If Operand is zero, then zero is returned.
Operand | The 64-bit operand to evaluate. |
0 | Operand is zero. |
Definition at line 26 of file GetPowerOfTwo64.c.