(svn r3613) Some more const, indentation, whitespace and similar stuff
This commit is contained in:
6
misc.c
6
misc.c
@@ -600,9 +600,9 @@ int FindFirstBit(uint32 value)
|
||||
// not more than 128.
|
||||
byte i = 0;
|
||||
if (value & 0xffff0000) { value >>= 16; i += 16; }
|
||||
if (value & 0x0000ff00) { value >>= 8; i += 8; }
|
||||
if (value & 0x000000f0) { value >>= 4; i += 4; }
|
||||
if (value & 0x0000000c) { value >>= 2; i += 2; }
|
||||
if (value & 0x0000ff00) { value >>= 8; i += 8; }
|
||||
if (value & 0x000000f0) { value >>= 4; i += 4; }
|
||||
if (value & 0x0000000c) { value >>= 2; i += 2; }
|
||||
if (value & 0x00000002) { i += 1; }
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user