mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 01:19:18 +02:00
qlunits: fix the return value of longint_to_qlfp
git-svn-id: trunk@49023 -
This commit is contained in:
parent
90d9f80aa5
commit
e8b92a4a76
@ -104,16 +104,16 @@ asm
|
|||||||
|
|
||||||
@setmant:
|
@setmant:
|
||||||
move.l d1,(a0) { copy into mantissa }
|
move.l d1,(a0) { copy into mantissa }
|
||||||
@fin:
|
bra @fin
|
||||||
movem.l (sp)+,d2-d4/a0 { reset register variables and return value }
|
|
||||||
rts
|
|
||||||
|
|
||||||
{ quick exit if zero }
|
{ quick exit if zero }
|
||||||
|
|
||||||
@zeroval:
|
@zeroval:
|
||||||
move.w d2,(a0)+ { zero exponent }
|
move.w d2,(a0)+ { zero exponent }
|
||||||
move.l d2,(a0) { zero mantissa }
|
move.l d2,(a0) { zero mantissa }
|
||||||
bra @fin
|
|
||||||
|
@fin:
|
||||||
|
movem.l (sp)+,d2-d4/a0 { reset register variables and return value }
|
||||||
|
move.l a0,d0 { copy return value into d0 as well }
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user