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