mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:49:12 +02:00
* fixed Math.SetRoundingMode
git-svn-id: trunk@5863 -
This commit is contained in:
parent
adae4e9976
commit
9619f4c09d
@ -60,7 +60,7 @@ var
|
|||||||
begin
|
begin
|
||||||
CtlWord:=Get8087CW;
|
CtlWord:=Get8087CW;
|
||||||
Set8087CW((CtlWord and $F3FF) or (Ord(RoundMode) shl 10));
|
Set8087CW((CtlWord and $F3FF) or (Ord(RoundMode) shl 10));
|
||||||
SetSSECSR((((GetSSECSR shr 13) and $fffffffc) or dword(RoundMode)) shl 13);
|
SetSSECSR((GetSSECSR and $ffff9fff) or (dword(RoundMode) shl 13));
|
||||||
Result:=GetRoundMode;
|
Result:=GetRoundMode;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user