TianoCore EDK2 master
Loading...
Searching...
No Matches
LowBitSet32.c
Go to the documentation of this file.
1
9#include "BaseLibInternals.h"
10
24INTN
25EFIAPI
27 IN UINT32 Operand
28 )
29{
30 INTN BitIndex;
31
32 if (Operand == 0) {
33 return -1;
34 }
35
36 for (BitIndex = 0; 0 == (Operand & 1); BitIndex++, Operand >>= 1) {
37 }
38
39 return BitIndex;
40}
INT64 INTN
INTN EFIAPI LowBitSet32(IN UINT32 Operand)
Definition: LowBitSet32.c:26
#define IN
Definition: Base.h:279