Core: Use nested namespace specifiers where applicable
Same thing, less visual noise.
This commit is contained in:
1 parent
b3525ad774
commit
32bacfa4bd
52 files changed
+107
-280
No files matched your search
@@ -12,9 +12,7 @@
|
||||
|
||||
// Arithmetic and accumulator control.
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
// CLR $acR
|
||||
// 1000 r001 xxxx xxxx
|
||||
@@ -1159,6 +1157,4 @@ void asrnr(const UDSPInstruction opc)
|
||||
dsp_set_long_acc(dreg, acc);
|
||||
Update_SR_Register64(dsp_get_long_acc(dreg));
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -11,9 +11,7 @@
|
||||
#include "Core/DSP/Interpreter/DSPIntUtil.h"
|
||||
#include "Core/DSP/Interpreter/DSPInterpreter.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
// Generic call implementation
|
||||
// CALLcc addressA
|
||||
@@ -263,6 +261,4 @@ void bloopi(const UDSPInstruction opc)
|
||||
dsp_skip_inst();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -9,9 +9,7 @@
|
||||
#include "Core/DSP/Interpreter/DSPIntCCUtil.h"
|
||||
#include "Core/DSP/DSPCore.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
void Update_SR_Register64(s64 _Value, bool carry, bool overflow)
|
||||
{
|
||||
@@ -182,6 +180,4 @@ bool CheckCondition(u8 _Condition)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -10,9 +10,7 @@
|
||||
|
||||
#include "Common/CommonTypes.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
bool CheckCondition(u8 _Condition);
|
||||
|
||||
@@ -40,6 +38,4 @@ inline bool isOverS32(s64 acc)
|
||||
{
|
||||
return (acc != (s32)acc) ? true : false;
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -30,9 +30,7 @@ static void WriteToBackLog(int i, int idx, u16 value)
|
||||
writeBackLogIdx[i] = idx;
|
||||
}
|
||||
|
||||
namespace Interpreter
|
||||
{
|
||||
namespace Ext
|
||||
namespace Interpreter::Ext
|
||||
{
|
||||
static bool IsSameMemArea(u16 a, u16 b)
|
||||
{
|
||||
@@ -493,9 +491,7 @@ void ldaxnm(const UDSPInstruction opc)
|
||||
void nop(const UDSPInstruction opc)
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace Ext
|
||||
} // namespace Interpreter
|
||||
} // namespace Interpreter::Ext
|
||||
|
||||
// The ext ops are calculated in parallel with the actual op. That means that
|
||||
// both the main op and the ext op see the same register state as input. The
|
||||
|
||||
@@ -11,11 +11,7 @@
|
||||
// Many opcode have the lower 0xFF (some only 0x7f) free - there, an opcode extension
|
||||
// can be stored.
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
{
|
||||
namespace Ext
|
||||
namespace DSP::Interpreter::Ext
|
||||
{
|
||||
void l(UDSPInstruction opc);
|
||||
void ln(UDSPInstruction opc);
|
||||
@@ -42,7 +38,4 @@ void dr(UDSPInstruction opc);
|
||||
void ir(UDSPInstruction opc);
|
||||
void nr(UDSPInstruction opc);
|
||||
void nop(UDSPInstruction opc);
|
||||
|
||||
} // namespace Ext
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter::Ext
|
||||
@@ -8,9 +8,7 @@
|
||||
#include "Core/DSP/Interpreter/DSPIntUtil.h"
|
||||
#include "Core/DSP/Interpreter/DSPInterpreter.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
// SRS @M, $(0x18+S)
|
||||
// 0010 1sss mmmm mmmm
|
||||
@@ -261,6 +259,4 @@ void ilrrn(const UDSPInstruction opc)
|
||||
dsp_conditional_extend_accum(dreg);
|
||||
g_dsp.r.ar[reg] = dsp_increase_addr_reg(reg, (s16)g_dsp.r.ix[reg]);
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -10,9 +10,7 @@
|
||||
#include "Core/DSP/Interpreter/DSPIntUtil.h"
|
||||
#include "Core/DSP/Interpreter/DSPInterpreter.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
// MRR $D, $S
|
||||
// 0001 11dd ddds ssss
|
||||
@@ -159,6 +157,4 @@ void srbith(const UDSPInstruction opc)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -11,9 +11,7 @@
|
||||
#include "Core/DSP/Interpreter/DSPIntUtil.h"
|
||||
#include "Core/DSP/Interpreter/DSPInterpreter.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
namespace
|
||||
{
|
||||
@@ -594,6 +592,4 @@ void msub(const UDSPInstruction opc)
|
||||
|
||||
dsp_set_long_prod(prod);
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -11,9 +11,7 @@
|
||||
#include "Core/DSP/DSPCore.h"
|
||||
#include "Core/DSP/DSPStacks.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
// ---------------------------------------------------------------------------------------
|
||||
// --- SR
|
||||
@@ -379,5 +377,4 @@ inline s16 dsp_get_ax_h(int _reg)
|
||||
return (s16)g_dsp.r.ax[_reg].h;
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -14,9 +14,7 @@
|
||||
#include "Core/DSP/DSPTables.h"
|
||||
#include "Core/DSP/Interpreter/DSPIntTables.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
namespace
|
||||
{
|
||||
@@ -237,6 +235,4 @@ void nop(const UDSPInstruction opc)
|
||||
|
||||
ERROR_LOG(DSPLLE, "LLE: Unrecognized opcode 0x%04x", opc);
|
||||
}
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
@@ -6,9 +6,7 @@
|
||||
|
||||
#include "Core/DSP/DSPCommon.h"
|
||||
|
||||
namespace DSP
|
||||
{
|
||||
namespace Interpreter
|
||||
namespace DSP::Interpreter
|
||||
{
|
||||
void Step();
|
||||
|
||||
@@ -146,5 +144,4 @@ void xorc(UDSPInstruction opc);
|
||||
void xori(UDSPInstruction opc);
|
||||
void xorr(UDSPInstruction opc);
|
||||
|
||||
} // namespace Interpreter
|
||||
} // namespace DSP
|
||||
} // namespace DSP::Interpreter
|
||||
Reference in new issue
Block a user