diff options
Diffstat (limited to 'MdePkg/Library/BaseLib/HighBitSet32.c')
-rw-r--r-- | MdePkg/Library/BaseLib/HighBitSet32.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseLib/HighBitSet32.c b/MdePkg/Library/BaseLib/HighBitSet32.c index b3c9ed158b..520511b7fe 100644 --- a/MdePkg/Library/BaseLib/HighBitSet32.c +++ b/MdePkg/Library/BaseLib/HighBitSet32.c @@ -6,9 +6,6 @@ **/
-
-
-
#include "BaseLibInternals.h"
/**
@@ -28,14 +25,17 @@ INTN
EFIAPI
HighBitSet32 (
- IN UINT32 Operand
+ IN UINT32 Operand
)
{
- INTN BitIndex;
+ INTN BitIndex;
if (Operand == 0) {
- return - 1;
+ return -1;
}
- for (BitIndex = 31; (INT32)Operand > 0; BitIndex--, Operand <<= 1);
+
+ for (BitIndex = 31; (INT32)Operand > 0; BitIndex--, Operand <<= 1) {
+ }
+
return BitIndex;
}
|