mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 22:39:36 +02:00
* android: Mask SSE exceptions for i386 too.
git-svn-id: trunk@41459 -
This commit is contained in:
parent
9f88cae771
commit
ab92dcd162
@ -67,19 +67,19 @@ threadvar
|
|||||||
|
|
||||||
function MaskExceptions: dword;
|
function MaskExceptions: dword;
|
||||||
begin
|
begin
|
||||||
{$ifdef cpux86_64}
|
{$if defined(cpux86_64) or defined(cpui386)}
|
||||||
Result:=GetMXCSR;
|
Result:=GetMXCSR;
|
||||||
SetMXCSR(Result or %0000000010000000 {MM_MaskInvalidOp} or %0001000000000000 {MM_MaskPrecision});
|
SetMXCSR(Result or %0000000010000000 {MM_MaskInvalidOp} or %0001000000000000 {MM_MaskPrecision});
|
||||||
{$else}
|
{$else}
|
||||||
Result:=0;
|
Result:=0;
|
||||||
{$endif cpux86_64}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure UnmaskExceptions(oldmask: dword);
|
procedure UnmaskExceptions(oldmask: dword);
|
||||||
begin
|
begin
|
||||||
{$ifdef cpux86_64}
|
{$if defined(cpux86_64) or defined(cpui386)}
|
||||||
SetMXCSR(oldmask);
|
SetMXCSR(oldmask);
|
||||||
{$endif cpux86_64}
|
{$endif}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function OpenConverter(const name: ansistring): PUConverter;
|
function OpenConverter(const name: ansistring): PUConverter;
|
||||||
|
Loading…
Reference in New Issue
Block a user