mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 00:09:31 +02:00
* Adjust precision checks for arm.
git-svn-id: trunk@10829 -
This commit is contained in:
parent
3b72bf98b0
commit
cc99d59d8b
@ -88,7 +88,7 @@ for i:=1 to 8 do
|
||||
Ref := i*10;
|
||||
Value := arctan(tan(i*10/float(180)*pi))/pi*float(180);
|
||||
Delta := Value - Ref;
|
||||
if Abs(Delta) > 1E-14 then
|
||||
if Abs(Delta) > {$ifdef cpuarm} 1E-13 {$else} 1E-14 {$endif} then
|
||||
begin
|
||||
writeln(' Error for ArcTan(',i*10,') was:',Value,' should be:',Ref);
|
||||
halt(1);
|
||||
@ -101,7 +101,7 @@ for i:=-1 downto -8 do
|
||||
Ref := i*10;
|
||||
Value := arctan(tan(i*10/float(180)*pi))/pi*float(180);
|
||||
Delta := Value - Ref;
|
||||
if Abs(Delta) > 1E-14 then
|
||||
if Abs(Delta) > {$ifdef cpuarm} 1E-13 {$else} 1E-14 {$endif} then
|
||||
begin
|
||||
writeln(' Error for ArcTan(',i*10,') was:',Value,' should be:',Ref);
|
||||
halt(1);
|
||||
|
Loading…
Reference in New Issue
Block a user