Merge pull request #9805 from JosJuice/rounding-mode-savestate

PowerPC: Set host CPU rounding mode on init and savestate
This commit is contained in:
Léo Lam
2021-06-13 11:49:29 +02:00
committed by GitHub
9 changed files with 26 additions and 31 deletions

View File

@ -41,10 +41,6 @@ void SetRoundMode(int mode)
// We don't need to do anything here since SetSIMDMode is always called after calling this
}
void SetPrecisionMode(PrecisionMode mode)
{
}
void SetSIMDMode(int rounding_mode, bool non_ieee_mode)
{
// When AH is disabled, FZ controls flush-to-zero for both inputs and outputs. When AH is enabled,

View File

@ -29,8 +29,6 @@ enum PrecisionMode
void SetRoundMode(int mode);
void SetPrecisionMode(PrecisionMode mode);
void SetSIMDMode(int rounding_mode, bool non_ieee_mode);
/*

View File

@ -11,9 +11,6 @@ namespace FPURoundMode
void SetRoundMode(int mode)
{
}
void SetPrecisionMode(PrecisionMode mode)
{
}
void SetSIMDMode(int rounding_mode, bool non_ieee_mode)
{
}

View File

@ -22,11 +22,6 @@ void SetRoundMode(int mode)
fesetround(rounding_mode_lut[mode]);
}
void SetPrecisionMode(PrecisionMode /* mode */)
{
// x64 doesn't need this - fpu is done with SSE
}
void SetSIMDMode(int rounding_mode, bool non_ieee_mode)
{
// OR-mask for disabling FPU exceptions (bits 7-12 in the MXCSR register)