mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-02 11:02:28 +02:00
Make sure to mask out the FPU rounding mode correctly. Good spot from LionCash.
This commit is contained in:
parent
eaa5a77d9e
commit
f3528277c4
@ -84,7 +84,7 @@ namespace FPURoundMode
|
|||||||
};
|
};
|
||||||
unsigned short _mode;
|
unsigned short _mode;
|
||||||
asm ("fstcw %0" : : "m" (_mode));
|
asm ("fstcw %0" : : "m" (_mode));
|
||||||
_mode = (_mode & ~table[4]) | table[mode];
|
_mode = (_mode & ~table[3]) | table[mode];
|
||||||
asm ("fldcw %0" : : "m" (_mode));
|
asm ("fldcw %0" : : "m" (_mode));
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user