Browse Source

* fixed Math.SetRoundingMode

git-svn-id: trunk@5863 -
florian 18 years ago
parent
commit
9619f4c09d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/x86_64/mathu.inc

+ 1 - 1
rtl/x86_64/mathu.inc

@@ -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;