From d4e01637e7f18b21740e00bef7909c9864f9273d Mon Sep 17 00:00:00 2001 From: nickysn Date: Wed, 1 Jan 2014 20:46:28 +0000 Subject: [PATCH] * 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 - --- rtl/inc/generic.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtl/inc/generic.inc b/rtl/inc/generic.inc index dca0c72c0b..b74d8f2c85 100644 --- a/rtl/inc/generic.inc +++ b/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