remove SetRoundMode

we only care about SSE rounding mode, and set
that manually in SetSIMDMode
This commit is contained in:
Shawn Hoffman
2021-07-17 19:19:33 -07:00
parent 3c90b657f3
commit 8bddd8c675
5 changed files with 0 additions and 18 deletions

View File

@ -14,13 +14,6 @@ namespace FPURoundMode
static u32 saved_sse_state = _mm_getcsr();
static const u32 default_sse_state = _mm_getcsr();
void SetRoundMode(RoundMode mode)
{
// Convert PowerPC to native rounding mode.
static const int rounding_mode_lut[] = {FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD, FE_DOWNWARD};
fesetround(rounding_mode_lut[mode]);
}
void SetSIMDMode(RoundMode rounding_mode, bool non_ieee_mode)
{
// OR-mask for disabling FPU exceptions (bits 7-12 in the MXCSR register)