mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 12:20:28 +02:00
+ add guards for consistency with the code for Extended
git-svn-id: trunk@36252 -
This commit is contained in:
parent
7b70848d83
commit
b58c3ed212
@ -356,16 +356,20 @@ const
|
||||
|
||||
{$else FPC_HAS_TYPE_EXTENDED}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_TRUNC}
|
||||
{$define FPC_SYSTEM_HAS_TRUNC}
|
||||
function fpc_trunc_real(d : ValReal) : int64;compilerproc; assembler; nostackframe;
|
||||
asm
|
||||
cvttsd2si %xmm0,%rax;
|
||||
end;
|
||||
{$endif FPC_SYSTEM_HAS_TRUNC}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_ROUND}
|
||||
{$define FPC_SYSTEM_HAS_ROUND}
|
||||
function fpc_round_real(d : ValReal) : int64;compilerproc; assembler; nostackframe;
|
||||
asm
|
||||
cvtsd2si %xmm0,%rax;
|
||||
end;
|
||||
{$endif FPC_SYSTEM_HAS_ROUND}
|
||||
|
||||
{$endif FPC_HAS_TYPE_EXTENDED}
|
||||
|
Loading…
Reference in New Issue
Block a user