mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 23:09:40 +02:00
* 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:
parent
2a4385c196
commit
d4e01637e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user