瀏覽代碼

* Get8087CW: Make sure that high bits of result are clear.

git-svn-id: trunk@19465 -
sergei 14 年之前
父節點
當前提交
369725f2c4
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      rtl/x86_64/math.inc

+ 2 - 1
rtl/x86_64/math.inc

@@ -51,7 +51,8 @@ FPC_ABSMASK_DOUBLE:
         tmp: word;
       asm
         fnstcw tmp
-        movq   tmp,%rax
+        movw   tmp,%ax
+        andl   $0xffff,%eax  { clears bits 32-63 }
       end;