My bad. Revert the FPU control word to old value instead of the new one of course. Thanks to marky for reporting this

This commit is contained in:
Thilo Schulz 2011-10-28 21:54:06 +00:00
parent 9064a13409
commit 6283e552d4

View file

@ -89,7 +89,7 @@ int qvmftolx87(void)
"fldcw %2\n" "fldcw %2\n"
"flds (" EDI ", " EBX ", 4)\n" "flds (" EDI ", " EBX ", 4)\n"
"fistpl (" EDI ", " EBX ", 4)\n" "fistpl (" EDI ", " EBX ", 4)\n"
"fldcw %2\n" "fldcw %1\n"
"mov (" EDI ", " EBX ", 4), %0\n" "mov (" EDI ", " EBX ", 4), %0\n"
: "=r" (retval) : "=r" (retval)
: "m" (oldcw), "m" (fpucw) : "m" (oldcw), "m" (fpucw)