Przeglądaj źródła

* 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 lat temu
rodzic
commit
277026ffd4
1 zmienionych plików z 1 dodań i 1 usunięć
  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}