diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:17:28 -0700 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-08-03 21:17:28 -0700 |
| commit | 4c42b38de1b91c9494e0a044cbf305941a09ec9f (patch) | |
| tree | 666a1a45c63684e04eeccc9d5e5dbc1b074b0795 /Source/Core/Common/x64FPURoundMode.cpp | |
| parent | e15ec56bf0237dba3db5cf969d68566af3a79194 (diff) | |
| parent | 0c24e1dcf21db56c31a069484514e5e9ff760c93 (diff) | |
Merge pull request #428 from Sonicadvance1/x86_32-removal
Remove x86_32 support from Dolphin.
Diffstat (limited to 'Source/Core/Common/x64FPURoundMode.cpp')
| -rw-r--r-- | Source/Core/Common/x64FPURoundMode.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/Source/Core/Common/x64FPURoundMode.cpp b/Source/Core/Common/x64FPURoundMode.cpp index 83b50ddb63..f6a8ba2575 100644 --- a/Source/Core/Common/x64FPURoundMode.cpp +++ b/Source/Core/Common/x64FPURoundMode.cpp @@ -32,30 +32,9 @@ namespace FPURoundMode fesetround(rounding_mode_lut[mode]); } - void SetPrecisionMode(PrecisionMode mode) + void SetPrecisionMode(PrecisionMode /* mode */) { - #ifdef _M_X86_32 - // sets the floating-point lib to 53-bit - // PowerPC has a 53bit floating pipeline only - // eg: sscanf is very sensitive - #ifdef _WIN32 - _control87(_PC_53, MCW_PC); - #else - const unsigned short PRECISION_MASK = 3 << 8; - const unsigned short precision_table[] = { - 0 << 8, // 24 bits - 2 << 8, // 53 bits - 3 << 8, // 64 bits - }; - unsigned short _mode; - asm ("fstcw %0" : "=m" (_mode)); - _mode = (_mode & ~PRECISION_MASK) | precision_table[mode]; - asm ("fldcw %0" : : "m" (_mode)); - #endif - #else - //x64 doesn't need this - fpu is done with SSE - //but still - set any useful sse options here - #endif + //x64 doesn't need this - fpu is done with SSE } void SetSIMDMode(int rounding_mode, bool non_ieee_mode) |
