TianoCore EDK2
master
Loading...
Searching...
No Matches
HighBitSet32.c
Go to the documentation of this file.
1
9
#include "
BaseLibInternals.h
"
10
25
INTN
26
EFIAPI
27
HighBitSet32
(
28
IN
UINT32 Operand
29
)
30
{
31
INTN
BitIndex;
32
33
if
(Operand == 0) {
34
return
-1;
35
}
36
37
for
(BitIndex = 31; (INT32)Operand > 0; BitIndex--, Operand <<= 1) {
38
}
39
40
return
BitIndex;
41
}
INTN
INT64 INTN
Definition:
ProcessorBind.h:118
BaseLibInternals.h
HighBitSet32
INTN EFIAPI HighBitSet32(IN UINT32 Operand)
Definition:
HighBitSet32.c:27
IN
#define IN
Definition:
Base.h:279
MdePkg
Library
BaseLib
HighBitSet32.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6