Piotr Caban : msvcrt: Correctly set rounding mode in _ftol implementation.
Alexandre Julliard
julliard at winehq.org
Sun Mar 18 09:02:31 CDT 2018
Module: wine
Branch: oldstable
Commit: b7b880c3bba73cb59a550fdb9f5b6e5fbacc2b35
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b7b880c3bba73cb59a550fdb9f5b6e5fbacc2b35
Author: Piotr Caban <piotr at codeweavers.com>
Date: Mon Dec 18 12:10:28 2017 +0100
msvcrt: Correctly set rounding mode in _ftol implementation.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 22edbd849ada33e8037f6f2b7fde75b1617f3f78)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/msvcrt/math.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index 8a84a26..f2d41c8 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -596,7 +596,7 @@ __ASM_GLOBAL_FUNC(MSVCRT__ftol,
"subl $12, %esp\n\t" /* sizeof(LONGLONG) + 2*sizeof(WORD) */
"fnstcw (%esp)\n\t"
"mov (%esp), %ax\n\t"
- "or $0xc, %ax\n\t"
+ "or $0xc00, %ax\n\t"
"mov %ax, 2(%esp)\n\t"
"fldcw 2(%esp)\n\t"
"fistpq 4(%esp)\n\t"
More information about the wine-cvs
mailing list