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