Adjusted to fit some gcc weirdness
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1584 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
772a29df28
commit
74c1950495
|
@ -16,6 +16,7 @@
|
|||
// http://code.google.com/p/dolphin-emu/
|
||||
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
|
||||
#include "Common.h"
|
||||
#include "PPCTables.h"
|
||||
|
@ -41,6 +42,16 @@ struct GekkoOPTemplate
|
|||
int runCount;
|
||||
};
|
||||
|
||||
struct inf
|
||||
{
|
||||
const char *name;
|
||||
int count;
|
||||
bool operator < (const inf &o) const
|
||||
{
|
||||
return count > o.count;
|
||||
}
|
||||
};
|
||||
|
||||
static GekkoOPInfo *m_infoTable[64];
|
||||
static GekkoOPInfo *m_infoTable4[1024];
|
||||
static GekkoOPInfo *m_infoTable19[1024];
|
||||
|
@ -656,7 +667,7 @@ namespace {
|
|||
}
|
||||
#endif
|
||||
|
||||
void PPCTables::CompileInstruction(UGeckoInstruction _inst)
|
||||
void CompileInstruction(UGeckoInstruction _inst)
|
||||
{
|
||||
dynaOpTable[_inst.OPCD](_inst);
|
||||
GekkoOPInfo *info = GetOpInfo(_inst);
|
||||
|
@ -688,15 +699,7 @@ void CountInstruction(UGeckoInstruction _inst)
|
|||
|
||||
void PrintInstructionRunCounts()
|
||||
{
|
||||
struct inf
|
||||
{
|
||||
const char *name;
|
||||
int count;
|
||||
bool operator < (const inf &o) const
|
||||
{
|
||||
return count > o.count;
|
||||
}
|
||||
};
|
||||
|
||||
std::vector<inf> temp;
|
||||
for (int i = 0; i < m_numInstructions; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue