Browse Source

- rm the fwait after fstsw in fpc_exp_real. My own testing on a true i8087 shows
that fwait after fstsw appears to be unnecessary. On the other hand, using
fnstsw, followed by fwait produces wrong results.

git-svn-id: trunk@26204 -

nickysn 11 years ago
parent
commit
9c86da1911
1 changed files with 0 additions and 1 deletions
  1. 0 1
      rtl/i8086/math.inc

+ 0 - 1
rtl/i8086/math.inc

@@ -112,7 +112,6 @@
         fsub st, st(1)                 // l2e*d-round(l2e*d)    round(l2e*d)
         fsub st, st(1)                 // l2e*d-round(l2e*d)    round(l2e*d)
         ftst                           // l2e*d-round(l2e*d)<0?
         ftst                           // l2e*d-round(l2e*d)<0?
         fstsw sw1
         fstsw sw1
-        fwait
         mov ah, [sw1 + 1]
         mov ah, [sw1 + 1]
         sahf
         sahf
         jb @@negative
         jb @@negative