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;
|
||||
asm ("fstcw %0" : : "m" (_mode));
|
||||
_mode = (_mode & ~table[4]) | table[mode];
|
||||
_mode = (_mode & ~table[3]) | table[mode];
|
||||
asm ("fldcw %0" : : "m" (_mode));
|
||||
#endif
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue