浏览代码

* perform the high level signed division by power-of-2 optimization for all
int types, larger than the ALU of the CPU, instead of just for 64-bit ints on
32-bit or smaller CPUs.

git-svn-id: trunk@36842 -

nickysn 8 年之前
父节点
当前提交
277026ffd4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/nmat.pas

+ 1 - 1
compiler/nmat.pas

@@ -503,7 +503,7 @@ implementation
           { for 64 bit, we leave the optimization to the cg }
             (not is_signed(resultdef)) then
 {$else cpu64bitalu}
-           (((nodetype=divn) and is_64bit(resultdef)) or
+           (((nodetype=divn) and is_oversizedord(resultdef)) or
             (nodetype=modn) or
             not is_signed(resultdef)) then
 {$endif cpu64bitalu}