mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-04 07:18:30 +02:00
* x86_64 non-Win64 targets: calculate tan() and cotan() using x87 "fptan" instruction.
git-svn-id: trunk@25996 -
This commit is contained in:
parent
2b1e5f7014
commit
5ea99c84fd
@ -23,6 +23,25 @@ function arctan2(y,x : float) : float;assembler;
|
||||
fpatan
|
||||
fwait
|
||||
end;
|
||||
|
||||
{$define FPC_MATH_HAS_TAN}
|
||||
function tan(x : float) : float;assembler;
|
||||
asm
|
||||
fldt X
|
||||
fptan
|
||||
fstp %st
|
||||
fwait
|
||||
end;
|
||||
|
||||
|
||||
{$define FPC_MATH_HAS_COTAN}
|
||||
function cotan(x : float) : float;assembler;
|
||||
asm
|
||||
fldt X
|
||||
fptan
|
||||
fdivp %st,%st(1)
|
||||
fwait
|
||||
end;
|
||||
{$endif FPC_HAS_TYPE_EXTENDED}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user