mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 02:26:20 +02:00
* use extended as default real type in calculations only if fputype=x87
git-svn-id: trunk@15750 -
This commit is contained in:
parent
dd33fba74c
commit
66571ee4c8
@ -1115,6 +1115,7 @@ implementation
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
procedure tcg.a_load_cgparaloc_ref(list : TAsmList;const paraloc : TCGParaLocation;const ref : treference;sizeleft : aint;align : longint);
|
procedure tcg.a_load_cgparaloc_ref(list : TAsmList;const paraloc : TCGParaLocation;const ref : treference;sizeleft : aint;align : longint);
|
||||||
var
|
var
|
||||||
href : treference;
|
href : treference;
|
||||||
|
@ -889,7 +889,14 @@ implementation
|
|||||||
{ is one a real float, then both need to be floats, this
|
{ is one a real float, then both need to be floats, this
|
||||||
need to be done before the constant folding so constant
|
need to be done before the constant folding so constant
|
||||||
operation on a float and int are also handled }
|
operation on a float and int are also handled }
|
||||||
resultrealdef:=pbestrealtype^;
|
{$ifdef x86}
|
||||||
|
{ use extended as default real type only when the x87 fpu is used }
|
||||||
|
if not(current_settings.fputype=fpu_x87) then
|
||||||
|
resultrealdef:=s64floattype
|
||||||
|
else
|
||||||
|
{$endif x86}
|
||||||
|
resultrealdef:=pbestrealtype^;
|
||||||
|
|
||||||
if (right.resultdef.typ=floatdef) or (left.resultdef.typ=floatdef) then
|
if (right.resultdef.typ=floatdef) or (left.resultdef.typ=floatdef) then
|
||||||
begin
|
begin
|
||||||
{ when both floattypes are already equal then use that
|
{ when both floattypes are already equal then use that
|
||||||
|
Loading…
Reference in New Issue
Block a user