TianoCore EDK2 master
Loading...
Searching...
No Matches
LowBitSet64.c
Go to the documentation of this file.
1
9#include "BaseLibInternals.h"
10
25INTN
26EFIAPI
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}
INT64 INTN
#define IN
Definition: Base.h:279
UINT64 EFIAPI RShiftU64(IN UINT64 Operand, IN UINTN Count)
Definition: RShiftU64.c:28
INTN EFIAPI LowBitSet64(IN UINT64 Operand)
Definition: LowBitSet64.c:27