mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 09:47:52 +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:
|
||||
move.l d1,(a0) { copy into mantissa }
|
||||
@fin:
|
||||
movem.l (sp)+,d2-d4/a0 { reset register variables and return value }
|
||||
rts
|
||||
bra @fin
|
||||
|
||||
{ quick exit if zero }
|
||||
|
||||
@zeroval:
|
||||
move.w d2,(a0)+ { zero exponent }
|
||||
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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user