mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Interpreter_Paired: Don't dump the entire MathUtils namespace into scope
Functions from the namespace are only used four times within the entire file.
This commit is contained in:
@ -10,8 +10,6 @@
|
|||||||
#include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h"
|
#include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h"
|
||||||
#include "Core/PowerPC/PowerPC.h"
|
#include "Core/PowerPC/PowerPC.h"
|
||||||
|
|
||||||
using namespace MathUtil;
|
|
||||||
|
|
||||||
// These "binary instructions" do not alter FPSCR.
|
// These "binary instructions" do not alter FPSCR.
|
||||||
void Interpreter::ps_sel(UGeckoInstruction inst)
|
void Interpreter::ps_sel(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
@ -125,8 +123,8 @@ void Interpreter::ps_res(UGeckoInstruction inst)
|
|||||||
SetFPException(FPSCR_ZX);
|
SetFPException(FPSCR_ZX);
|
||||||
}
|
}
|
||||||
|
|
||||||
rPS0(inst.FD) = ApproximateReciprocal(a);
|
rPS0(inst.FD) = MathUtil::ApproximateReciprocal(a);
|
||||||
rPS1(inst.FD) = ApproximateReciprocal(b);
|
rPS1(inst.FD) = MathUtil::ApproximateReciprocal(b);
|
||||||
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
||||||
|
|
||||||
if (inst.Rc)
|
if (inst.Rc)
|
||||||
@ -145,8 +143,8 @@ void Interpreter::ps_rsqrte(UGeckoInstruction inst)
|
|||||||
SetFPException(FPSCR_VXSQRT);
|
SetFPException(FPSCR_VXSQRT);
|
||||||
}
|
}
|
||||||
|
|
||||||
rPS0(inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS0(inst.FB)));
|
rPS0(inst.FD) = ForceSingle(MathUtil::ApproximateReciprocalSquareRoot(rPS0(inst.FB)));
|
||||||
rPS1(inst.FD) = ForceSingle(ApproximateReciprocalSquareRoot(rPS1(inst.FB)));
|
rPS1(inst.FD) = ForceSingle(MathUtil::ApproximateReciprocalSquareRoot(rPS1(inst.FB)));
|
||||||
|
|
||||||
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user