- From Lauri's ChangeLog: "Fixed a bug in FPU FTAN opcode (didn't pop the value

1.0 that x86 partial tangent FPTAN always pushes to stack for 8087/287
  compatibility)."
This commit is contained in:
gbeauche 2001-01-11 13:19:30 +00:00
parent c7d71ae1ab
commit d21cbd327d

View File

@ -1359,12 +1359,14 @@ static void do_ftan( float80 dest, float80 src )
MOV EDI, [dest]
FLD TBYTE PTR [ESI]
FPTAN
FSTP ST(0) ; pop 1.0 (the 8087/287 compatibility thing)
FXAM
FNSTSW sw
FSTP TBYTE PTR [EDI]
} */
_ASM( "fldt %2\n"
"fptan \n"
"fstp %%st(0)\n"
"fxam \n"
"fnstsw %0\n"
"fstpt %1\n"