소스 검색

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