Fixed whitespace
This commit is contained in:
parent
396c5b8e79
commit
b47f785f57
1 changed files with 8 additions and 8 deletions
|
@ -53,10 +53,10 @@ SDL_MostSignificantBitIndex32(Uint32 x)
|
||||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||||
/* Count Leading Zeroes builtin in GCC.
|
/* Count Leading Zeroes builtin in GCC.
|
||||||
* http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
|
* http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html
|
||||||
*/
|
*/
|
||||||
if (x == 0) {
|
if (x == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return 31 - __builtin_clz(x);
|
return 31 - __builtin_clz(x);
|
||||||
#else
|
#else
|
||||||
/* Based off of Bit Twiddling Hacks by Sean Eron Anderson
|
/* Based off of Bit Twiddling Hacks by Sean Eron Anderson
|
||||||
|
@ -67,11 +67,11 @@ SDL_MostSignificantBitIndex32(Uint32 x)
|
||||||
const int S[] = {1, 2, 4, 8, 16};
|
const int S[] = {1, 2, 4, 8, 16};
|
||||||
|
|
||||||
int msbIndex = 0;
|
int msbIndex = 0;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (x == 0) {
|
if (x == 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 4; i >= 0; i--)
|
for (i = 4; i >= 0; i--)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue