mirror of https://github.com/PCSX2/pcsx2.git
parent
539e285f86
commit
51887f1cbc
|
@ -31,11 +31,11 @@ int BaseBlocks::LastIndex(u32 startpc) const
|
||||||
if (0 == blocks.size())
|
if (0 == blocks.size())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
int imin = 0, imax = blocks.size() - 1, imid;
|
int imin = 0, imax = blocks.size() - 1;
|
||||||
|
|
||||||
while (imin != imax)
|
while (imin != imax)
|
||||||
{
|
{
|
||||||
imid = (imin + imax + 1) >> 1;
|
const int imid = (imin + imax + 1) >> 1;
|
||||||
|
|
||||||
if (blocks[imid].startpc > startpc)
|
if (blocks[imid].startpc > startpc)
|
||||||
imax = imid - 1;
|
imax = imid - 1;
|
||||||
|
@ -52,10 +52,10 @@ BASEBLOCKEX* BaseBlocks::GetByX86(uptr ip)
|
||||||
if (0 == blocks.size())
|
if (0 == blocks.size())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int imin = 0, imax = blocks.size() - 1, imid;
|
int imin = 0, imax = blocks.size() - 1;
|
||||||
|
|
||||||
while(imin != imax) {
|
while(imin != imax) {
|
||||||
imid = (imin+imax+1)>>1;
|
const int imid = (imin+imax+1)>>1;
|
||||||
|
|
||||||
if (blocks[imid].fnptr > ip)
|
if (blocks[imid].fnptr > ip)
|
||||||
imax = imid - 1;
|
imax = imid - 1;
|
||||||
|
|
Loading…
Reference in New Issue