Browse Source

* use nativeint, instead of longint in fpc_div_dword and fpc_mod_dword, because
it produces more efficient code on 16-bit and 8-bit platforms.

git-svn-id: trunk@26351 -

nickysn 11 years ago
parent
commit
d4e01637e7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      rtl/inc/generic.inc

+ 2 - 2
rtl/inc/generic.inc

@@ -1362,7 +1362,7 @@ end;
 {$ifndef FPC_SYSTEM_HAS_DIV_DWORD}
 function fpc_div_dword(n,z : dword) : dword; [public,alias: 'FPC_DIV_DWORD']; compilerproc;
   var
-     shift,lzz,lzn : longint;
+     shift,lzz,lzn : nativeint;
   begin
      result:=0;
      if n=0 then
@@ -1394,7 +1394,7 @@ function fpc_div_dword(n,z : dword) : dword; [public,alias: 'FPC_DIV_DWORD']; co
 {$ifndef FPC_SYSTEM_HAS_MOD_DWORD}
 function fpc_mod_dword(n,z : dword) : dword; [public,alias: 'FPC_MOD_DWORD']; compilerproc;
   var
-     shift,lzz,lzn : longint;
+     shift,lzz,lzn : nativeint;
   begin
      result:=0;
      if n=0 then