From f3528277c4efefd98cb1c591bd0c378976782883 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Thu, 7 Mar 2013 09:52:38 -0600 Subject: [PATCH] Make sure to mask out the FPU rounding mode correctly. Good spot from LionCash. --- Source/Core/Common/Src/x64FPURoundMode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/Src/x64FPURoundMode.cpp b/Source/Core/Common/Src/x64FPURoundMode.cpp index 0beefd860a..447beb3625 100644 --- a/Source/Core/Common/Src/x64FPURoundMode.cpp +++ b/Source/Core/Common/Src/x64FPURoundMode.cpp @@ -84,7 +84,7 @@ namespace FPURoundMode }; unsigned short _mode; asm ("fstcw %0" : : "m" (_mode)); - _mode = (_mode & ~table[4]) | table[mode]; + _mode = (_mode & ~table[3]) | table[mode]; asm ("fldcw %0" : : "m" (_mode)); #endif #else