mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 08:38:14 +02:00
Fix compilation error with -dFPC_USE_LIBC for loongarch64 cpu
This commit is contained in:
parent
86c4b160e2
commit
513c8983e0
@ -14,6 +14,7 @@
|
||||
|
||||
**********************************************************************}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_INT}
|
||||
{$define FPC_SYSTEM_HAS_INT}
|
||||
function fpc_int_real(d : ValReal) : ValReal;assembler;nostackframe;compilerproc;
|
||||
asm
|
||||
@ -23,7 +24,9 @@
|
||||
frint.d $fa0, $fa0
|
||||
movgr2fcsr $r3, $t0
|
||||
end;
|
||||
{$endif ndef FPC_SYSTEM_HAS_INT}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_FRAC}
|
||||
{$define FPC_SYSTEM_HAS_FRAC}
|
||||
function fpc_frac_real(d : ValReal) : ValReal;assembler;nostackframe;compilerproc;
|
||||
asm
|
||||
@ -44,3 +47,5 @@
|
||||
fdiv.d $fa0, $fa0, $fa1
|
||||
// jr $ra
|
||||
end;
|
||||
{$endif ndef FPC_SYSTEM_HAS_FRAC}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user