msvcrt: Correctly set rounding mode in _ftol implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8ee96fec2b
commit
22edbd849a
|
@ -693,7 +693,7 @@ __ASM_GLOBAL_FUNC(MSVCRT__ftol,
|
||||||
"subl $12, %esp\n\t" /* sizeof(LONGLONG) + 2*sizeof(WORD) */
|
"subl $12, %esp\n\t" /* sizeof(LONGLONG) + 2*sizeof(WORD) */
|
||||||
"fnstcw (%esp)\n\t"
|
"fnstcw (%esp)\n\t"
|
||||||
"mov (%esp), %ax\n\t"
|
"mov (%esp), %ax\n\t"
|
||||||
"or $0xc, %ax\n\t"
|
"or $0xc00, %ax\n\t"
|
||||||
"mov %ax, 2(%esp)\n\t"
|
"mov %ax, 2(%esp)\n\t"
|
||||||
"fldcw 2(%esp)\n\t"
|
"fldcw 2(%esp)\n\t"
|
||||||
"fistpq 4(%esp)\n\t"
|
"fistpq 4(%esp)\n\t"
|
||||||
|
|
Loading…
Reference in New Issue