mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 00:09:31 +02:00
- disabled the i8086 math.arctan2 asm code, because it doesn't work on the 8087/80287
git-svn-id: trunk@26243 -
This commit is contained in:
parent
2a0a8cfc00
commit
f23c521c50
@ -13,14 +13,19 @@
|
||||
**********************************************************************}
|
||||
|
||||
{$ASMMODE intel}
|
||||
{$define FPC_MATH_HAS_ARCTAN2}
|
||||
function arctan2(y,x : float) : float;assembler;
|
||||
|
||||
{NOTE: the fpatan instruction on the 8087 and 80287 has the following restrictions:
|
||||
0 <= ST(1) < ST(0) < +inf
|
||||
so the following code requires a 387+ and is therefore disabled, so that we use the
|
||||
generic implementation, until an asm optimized version, compatible with 8087/80287 is written }
|
||||
{//$define FPC_MATH_HAS_ARCTAN2}
|
||||
{function arctan2(y,x : float) : float;assembler;
|
||||
asm
|
||||
fld tbyte [y]
|
||||
fld tbyte [x]
|
||||
fpatan
|
||||
fwait
|
||||
end;
|
||||
end;}
|
||||
|
||||
|
||||
{//$define FPC_MATH_HAS_SINCOS}
|
||||
|
Loading…
Reference in New Issue
Block a user