From 96014e74a30aeb87cc932b8396470b93e368a667 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 24 Mar 2018 19:42:11 -0400 Subject: [PATCH] Interpreter_Paired: Don't dump the entire MathUtils namespace into scope Functions from the namespace are only used four times within the entire file. --- .../Core/PowerPC/Interpreter/Interpreter_Paired.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp index b11eb4cbd9..6edc5f4c1d 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_Paired.cpp @@ -10,8 +10,6 @@ #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" #include "Core/PowerPC/PowerPC.h" -using namespace MathUtil; - // These "binary instructions" do not alter FPSCR. void Interpreter::ps_sel(UGeckoInstruction inst) { @@ -125,8 +123,8 @@ void Interpreter::ps_res(UGeckoInstruction inst) SetFPException(FPSCR_ZX); } - rPS0(inst.FD) = ApproximateReciprocal(a); - rPS1(inst.FD) = ApproximateReciprocal(b); + rPS0(inst.FD) = MathUtil::ApproximateReciprocal(a); + rPS1(inst.FD) = MathUtil::ApproximateReciprocal(b); PowerPC::UpdateFPRF(rPS0(inst.FD)); if (inst.Rc) @@ -145,8 +143,8 @@ void Interpreter::ps_rsqrte(UGeckoInstruction inst) SetFPException(FPSCR_VXSQRT); } - rPS0(inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS0(inst.FB))); - rPS1(inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS1(inst.FB))); + rPS0(inst.FD) = ForceSingle(MathUtil::ApproximateReciprocalSquareRoot(rPS0(inst.FB))); + rPS1(inst.FD) = ForceSingle(MathUtil::ApproximateReciprocalSquareRoot(rPS1(inst.FB))); PowerPC::UpdateFPRF(rPS0(inst.FD));