diff --git a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp index 8c886fb251..642b229bbd 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.cpp @@ -22,11 +22,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { constexpr size_t COMPILED_CODE_SIZE = 2097152; constexpr size_t MAX_BLOCK_SIZE = 250; @@ -485,6 +481,4 @@ Gen::OpArg DSPEmitter::M_SDSP_reg_stack_ptr(size_t index) return MDisp(R15, static_cast(offsetof(SDSP, reg_stack_ptr[index]))); } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h index 245fb1a9df..369da3ae37 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h +++ b/Source/Core/Core/DSP/Jit/x64/DSPEmitter.h @@ -22,9 +22,7 @@ namespace DSP { enum class StackRegister; -namespace JIT -{ -namespace x64 +namespace JIT::x64 { class DSPEmitter : public Gen::X64CodeBlock { @@ -321,6 +319,5 @@ private: const u8* m_stub_entry_point; }; -} // namespace x64 -} // namespace JIT +} // namespace JIT::x64 } // namespace DSP diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp index 47ac525d8c..7c159085d7 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitArithmetic.cpp @@ -12,11 +12,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // CLR $acR // 1000 r001 xxxx xxxx @@ -1676,6 +1672,4 @@ void DSPEmitter::asrnr(const UDSPInstruction opc) } } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp index bd6837f4a0..e08a6ac57e 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitBranch.cpp @@ -12,11 +12,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { void DSPEmitter::ReJitConditional(const UDSPInstruction opc, void (DSPEmitter::*conditional_fn)(UDSPInstruction)) @@ -462,6 +458,4 @@ void DSPEmitter::bloopi(const UDSPInstruction opc) } } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp index 7457e21377..c8d8522d0b 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitCCUtil.cpp @@ -9,11 +9,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // In: val: s64 _Value // Clobbers scratch @@ -168,6 +164,4 @@ void DSPEmitter::Update_SR_Register16_OverS32(Gen::X64Reg val) Update_SR_Register16(val); } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp index e8c5bb4fc2..53b197045c 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitExtOps.cpp @@ -25,11 +25,7 @@ using namespace Gen; sign extension. */ -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // DR $arR // xxxx xxxx 0000 01rr @@ -698,6 +694,4 @@ void DSPEmitter::popExtValueToReg() m_store_index2 = -1; } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp index 4ddb24ab52..6db4cbefbc 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitLoadStore.cpp @@ -12,11 +12,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // SRS @M, $(0x18+S) // 0010 1sss mmmm mmmm @@ -355,6 +351,4 @@ void DSPEmitter::ilrrn(const UDSPInstruction opc) increase_addr_reg(reg, reg); } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp index 7ecd866fe0..0adfb091a1 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitMisc.cpp @@ -10,11 +10,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // MRR $D, $S // 0001 11dd ddds ssss @@ -195,6 +191,4 @@ void DSPEmitter::srbith(const UDSPInstruction opc) } } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp index 67456043df..79e6252f12 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitMultiplier.cpp @@ -15,11 +15,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // Returns s64 in RAX // In: RCX = s16 a, RAX = s16 b @@ -778,6 +774,4 @@ void DSPEmitter::msub(const UDSPInstruction opc) set_long_prod(); } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index 152e0b49d5..936f7ed41d 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -16,11 +16,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // Ordered in order of prefered use. // Not all of these are actually available @@ -993,6 +989,4 @@ void DSPJitRegCache::PutXReg(X64Reg reg) m_xregs[reg].guest_reg = DSP_REG_NONE; } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h index 9e3d2cdbad..7ef7d24078 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.h @@ -8,11 +8,7 @@ #include "Common/x64Emitter.h" -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { class DSPEmitter; @@ -185,6 +181,4 @@ private: int m_use_ctr; }; -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64 diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp index d66ebce825..f9a95b534e 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitUtil.cpp @@ -10,11 +10,7 @@ using namespace Gen; -namespace DSP -{ -namespace JIT -{ -namespace x64 +namespace DSP::JIT::x64 { // clobbers: // EAX = (s8)g_dsp.reg_stack_ptr[reg_index] @@ -811,6 +807,4 @@ void DSPEmitter::get_ax_h(int _reg, X64Reg axh) m_gpr.ReadReg(_reg + DSP_REG_AXH0, axh, RegisterExtension::Sign); } -} // namespace x64 -} // namespace JIT -} // namespace DSP +} // namespace DSP::JIT::x64