|
@@ -80,23 +80,23 @@ interface
|
|
|
treelogfilename = 'tree.log';
|
|
|
|
|
|
{$if defined(CPUARM) and defined(FPUFPA)}
|
|
|
- MathQNaN : tdoublearray = (0,0,252,255,0,0,0,0);
|
|
|
- MathInf : tdoublearray = (0,0,240,127,0,0,0,0);
|
|
|
- MathNegInf : tdoublearray = (0,0,240,255,0,0,0,0);
|
|
|
- MathPi : tdoublearray = (251,33,9,64,24,45,68,84);
|
|
|
+ MathQNaN : tdoublerec = (bytes : (0,0,252,255,0,0,0,0));
|
|
|
+ MathInf : tdoublerec = (bytes : (0,0,240,127,0,0,0,0));
|
|
|
+ MathNegInf : tdoublerec = (bytes : (0,0,240,255,0,0,0,0));
|
|
|
+ MathPi : tdoublerec = (bytes : (251,33,9,64,24,45,68,84));
|
|
|
{$else}
|
|
|
{$ifdef FPC_LITTLE_ENDIAN}
|
|
|
- MathQNaN : tdoublearray = (0,0,0,0,0,0,252,255);
|
|
|
- MathInf : tdoublearray = (0,0,0,0,0,0,240,127);
|
|
|
- MathNegInf : tdoublearray = (0,0,0,0,0,0,240,255);
|
|
|
- MathPi : tdoublearray = (24,45,68,84,251,33,9,64);
|
|
|
- MathPiExtended : textendedarray = (53,194,104,33,162,218,15,201,0,64);
|
|
|
+ MathQNaN : tdoublerec = (bytes : (0,0,0,0,0,0,252,255));
|
|
|
+ MathInf : tdoublerec = (bytes : (0,0,0,0,0,0,240,127));
|
|
|
+ MathNegInf : tdoublerec = (bytes : (0,0,0,0,0,0,240,255));
|
|
|
+ MathPi : tdoublerec = (bytes : (24,45,68,84,251,33,9,64));
|
|
|
+ MathPiExtended : textendedrec = (bytes : (53,194,104,33,162,218,15,201,0,64));
|
|
|
{$else FPC_LITTLE_ENDIAN}
|
|
|
- MathQNaN : tdoublearray = (255,252,0,0,0,0,0,0);
|
|
|
- MathInf : tdoublearray = (127,240,0,0,0,0,0,0);
|
|
|
- MathNegInf : tdoublearray = (255,240,0,0,0,0,0,0);
|
|
|
- MathPi : tdoublearray = (64,9,33,251,84,68,45,24);
|
|
|
- MathPiExtended : textendedarray = (64,0,201,15,218,162,33,104,194,53);
|
|
|
+ MathQNaN : tdoublerec = (bytes : (255,252,0,0,0,0,0,0));
|
|
|
+ MathInf : tdoublerec = (bytes : (127,240,0,0,0,0,0,0));
|
|
|
+ MathNegInf : tdoublerec = (bytes : (255,240,0,0,0,0,0,0));
|
|
|
+ MathPi : tdoublerec = (bytes : (64,9,33,251,84,68,45,24));
|
|
|
+ MathPiExtended : textendedrec = (bytes : (64,0,201,15,218,162,33,104,194,53));
|
|
|
{$endif FPC_LITTLE_ENDIAN}
|
|
|
{$endif}
|
|
|
|
|
@@ -1858,15 +1858,15 @@ end;
|
|
|
result := -1;
|
|
|
end;
|
|
|
|
|
|
- function convertdoublearray(d : tdoublearray) : tdoublearray;{$ifdef USEINLINE}inline;{$endif}
|
|
|
+ function convertdoublerec(d : tdoublerec) : tdoublerec;{$ifdef USEINLINE}inline;{$endif}
|
|
|
{$ifdef CPUARM}
|
|
|
var
|
|
|
i : longint;
|
|
|
begin
|
|
|
for i:=0 to 3 do
|
|
|
begin
|
|
|
- result[i+4]:=d[i];
|
|
|
- result[i]:=d[i+4];
|
|
|
+ result.bytes[i+4]:=d.bytes[i];
|
|
|
+ result.bytes[i]:=d.bytes[i+4];
|
|
|
end;
|
|
|
{$else CPUARM}
|
|
|
begin
|