Core: Shorten the _interpreterInstruction typedef

The class itself already acts as a namespace trailer, so '_interpreter'
isn't necessary. This also gets rid of a duplicate typedef in the
Interpreter_Tables.
This commit is contained in:
Lioncash committed 2015-08-22 14:14:49 -04:00
1 parent a39c0910c4
commit c56717e058
7 files changed
+18 -20

No files matched your search

@@ -26,12 +26,12 @@ namespace
bool Interpreter::m_EndBlock;
// function tables
Interpreter::_interpreterInstruction Interpreter::m_opTable[64];
Interpreter::_interpreterInstruction Interpreter::m_opTable4[1024];
Interpreter::_interpreterInstruction Interpreter::m_opTable19[1024];
Interpreter::_interpreterInstruction Interpreter::m_opTable31[1024];
Interpreter::_interpreterInstruction Interpreter::m_opTable59[32];
Interpreter::_interpreterInstruction Interpreter::m_opTable63[1024];
Interpreter::Instruction Interpreter::m_opTable[64];
Interpreter::Instruction Interpreter::m_opTable4[1024];
Interpreter::Instruction Interpreter::m_opTable19[1024];
Interpreter::Instruction Interpreter::m_opTable31[1024];
Interpreter::Instruction Interpreter::m_opTable59[32];
Interpreter::Instruction Interpreter::m_opTable63[1024];
void Interpreter::RunTable4(UGeckoInstruction _inst) { m_opTable4 [_inst.SUBOP10](_inst); }
void Interpreter::RunTable19(UGeckoInstruction _inst) { m_opTable19[_inst.SUBOP10](_inst); }
@@ -273,13 +273,13 @@ public:
static void sync(UGeckoInstruction _inst);
static void isync(UGeckoInstruction _inst);
typedef void(*_interpreterInstruction)(UGeckoInstruction instCode);
static _interpreterInstruction m_opTable[64];
static _interpreterInstruction m_opTable4[1024];
static _interpreterInstruction m_opTable19[1024];
static _interpreterInstruction m_opTable31[1024];
static _interpreterInstruction m_opTable59[32];
static _interpreterInstruction m_opTable63[1024];
using Instruction = void (*)(UGeckoInstruction instCode);
static Instruction m_opTable[64];
static Instruction m_opTable4[1024];
static Instruction m_opTable19[1024];
static Instruction m_opTable31[1024];
static Instruction m_opTable59[32];
static Instruction m_opTable63[1024];
// singleton
static Interpreter* getInstance();
@@ -4,12 +4,10 @@
#include "Core/PowerPC/Interpreter/Interpreter_Tables.h"
typedef void (*_Instruction) (UGeckoInstruction instCode);
struct GekkoOPTemplate
{
int opcode;
_Instruction Inst;
Interpreter::Instruction Inst;
GekkoOPInfo opinfo;
};