msvcrt: Fix restoring 53-bit precision mode in _control87.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52260 Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4fd80941f8
commit
7555573dc5
|
@ -5328,7 +5328,7 @@ static void _setfp( unsigned int *cw, unsigned int cw_mask,
|
||||||
|
|
||||||
*cw = (flags & ~cw_mask) | (*cw & cw_mask);
|
*cw = (flags & ~cw_mask) | (*cw & cw_mask);
|
||||||
TRACE("x86 update cw %08x to %08x\n", flags, *cw);
|
TRACE("x86 update cw %08x to %08x\n", flags, *cw);
|
||||||
newcw &= ~0x1e3f;
|
newcw &= ~0x1f3f;
|
||||||
if (*cw & _EM_INVALID) newcw |= 0x1;
|
if (*cw & _EM_INVALID) newcw |= 0x1;
|
||||||
if (*cw & _EM_DENORMAL) newcw |= 0x2;
|
if (*cw & _EM_DENORMAL) newcw |= 0x2;
|
||||||
if (*cw & _EM_ZERODIVIDE) newcw |= 0x4;
|
if (*cw & _EM_ZERODIVIDE) newcw |= 0x4;
|
||||||
|
|
Loading…
Reference in New Issue