mirror of https://github.com/xemu-project/xemu.git
silly log2 rounded the wrong way
This commit is contained in:
parent
88de3488d9
commit
dad84440f9
|
@ -29,7 +29,7 @@
|
|||
static unsigned int log2(unsigned int i)
|
||||
{
|
||||
unsigned int r = 0;
|
||||
while (i >> ++r);
|
||||
while (i >>= 1) r++;
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue