mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 08:49:38 +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
|
||||
CtlWord:=Get8087CW;
|
||||
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;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user