Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure to mask out the FPU rounding mode correctly. Good spot from…
… LionCash.
  • Loading branch information
Sonicadvance1 committed Mar 7, 2013
1 parent eaa5a77 commit f352827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/Src/x64FPURoundMode.cpp
Expand Up @@ -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
Expand Down

0 comments on commit f352827

Please sign in to comment.