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