Skip to content

Commit f451047

Browse files
committed
Set8087CW not available in ARM processors
1 parent 85c6f6a commit f451047

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

PythonForDelphi/Components/Sources/Core/PythonEngine.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9720,6 +9720,7 @@ function PyType_HasFeature(AType : PPyTypeObject; AFlag : Integer) : Boolean;
97209720
procedure MaskFPUExceptions(ExceptionsMasked : boolean;
97219721
MatchPythonPrecision : Boolean);
97229722
begin
9723+
{$IFNDEF CPUARM}
97239724
if MatchPythonPrecision then begin
97249725
if ExceptionsMasked then
97259726
Set8087CW($1232 or $3F)
@@ -9731,6 +9732,7 @@ procedure MaskFPUExceptions(ExceptionsMasked : boolean;
97319732
else
97329733
Set8087CW($1332);
97339734
end;
9735+
{$ENDIF}
97349736
end;
97359737

97369738
{$IFDEF MSWINDOWS}

0 commit comments

Comments
 (0)