mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-12 23:48:35 +02:00
Interpreter_FloatingPoint: Don't dump the entire MathUtils namespace into scope
Given functions from the MathUtils namespace are only used six times in the whole file, dumping the namespace seems a little excessive.
This commit is contained in:
parent
328ac424c0
commit
46f61a48c7
@ -11,8 +11,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;
|
|
||||||
|
|
||||||
// Extremely rare - actually, never seen.
|
// Extremely rare - actually, never seen.
|
||||||
// Star Wars : Rogue Leader spams that at some point :|
|
// Star Wars : Rogue Leader spams that at some point :|
|
||||||
void Interpreter::Helper_UpdateCR1()
|
void Interpreter::Helper_UpdateCR1()
|
||||||
@ -27,7 +25,7 @@ void Interpreter::Helper_FloatCompareOrdered(UGeckoInstruction inst, double fa,
|
|||||||
if (std::isnan(fa) || std::isnan(fb))
|
if (std::isnan(fa) || std::isnan(fb))
|
||||||
{
|
{
|
||||||
compareResult = FPCC::FU;
|
compareResult = FPCC::FU;
|
||||||
if (IsSNAN(fa) || IsSNAN(fb))
|
if (MathUtil::IsSNAN(fa) || MathUtil::IsSNAN(fb))
|
||||||
{
|
{
|
||||||
SetFPException(FPSCR_VXSNAN);
|
SetFPException(FPSCR_VXSNAN);
|
||||||
if (FPSCR.VE == 0)
|
if (FPSCR.VE == 0)
|
||||||
@ -67,7 +65,7 @@ void Interpreter::Helper_FloatCompareUnordered(UGeckoInstruction inst, double fa
|
|||||||
{
|
{
|
||||||
compareResult = FPCC::FU;
|
compareResult = FPCC::FU;
|
||||||
|
|
||||||
if (IsSNAN(fa) || IsSNAN(fb))
|
if (MathUtil::IsSNAN(fa) || MathUtil::IsSNAN(fb))
|
||||||
{
|
{
|
||||||
SetFPException(FPSCR_VXSNAN);
|
SetFPException(FPSCR_VXSNAN);
|
||||||
}
|
}
|
||||||
@ -371,7 +369,7 @@ void Interpreter::fdivsx(UGeckoInstruction inst)
|
|||||||
void Interpreter::fresx(UGeckoInstruction inst)
|
void Interpreter::fresx(UGeckoInstruction inst)
|
||||||
{
|
{
|
||||||
double b = rPS0(inst.FB);
|
double b = rPS0(inst.FB);
|
||||||
rPS0(inst.FD) = rPS1(inst.FD) = ApproximateReciprocal(b);
|
rPS0(inst.FD) = rPS1(inst.FD) = MathUtil::ApproximateReciprocal(b);
|
||||||
|
|
||||||
if (b == 0.0)
|
if (b == 0.0)
|
||||||
{
|
{
|
||||||
@ -397,7 +395,7 @@ void Interpreter::frsqrtex(UGeckoInstruction inst)
|
|||||||
SetFPException(FPSCR_ZX);
|
SetFPException(FPSCR_ZX);
|
||||||
}
|
}
|
||||||
|
|
||||||
rPS0(inst.FD) = ApproximateReciprocalSquareRoot(b);
|
rPS0(inst.FD) = MathUtil::ApproximateReciprocalSquareRoot(b);
|
||||||
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
PowerPC::UpdateFPRF(rPS0(inst.FD));
|
||||||
|
|
||||||
if (inst.Rc)
|
if (inst.Rc)
|
||||||
|
Loading…
Reference in New Issue
Block a user