MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetByX86

Method GetByX86

pcsx2/x86/BaseblockEx.cpp:36–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35#if 0
36BASEBLOCKEX* BaseBlocks::GetByX86(uptr ip)
37{
38 if (0 == blocks.size())
39 return 0;
40
41 int imin = 0, imax = blocks.size() - 1;
42
43 while(imin != imax) {
44 const int imid = (imin+imax+1)>>1;
45
46 if (blocks[imid].fnptr > ip)
47 imax = imid - 1;
48 else
49 imin = imid;
50 }
51
52 if (ip < blocks[imin].fnptr ||
53 ip >= blocks[imin].fnptr + blocks[imin].x86size)
54 return 0;
55
56 return &blocks[imin];
57}
58#endif
59
60void BaseBlocks::Link(u32 pc, s32* jumpptr)

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected