* 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 -
This commit is contained in:
nickysn 2014-01-01 20:46:28 +00:00
parent 2a4385c196
commit d4e01637e7

View File

@ -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