mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 01:08:35 +02:00
* changes shift parameter of shift helpers into ALUUInt, as there is an "and" used anyways, this does not change semantics but reduces register pressure on 8 bit targets
git-svn-id: trunk@42200 -
This commit is contained in:
parent
14b9032ef2
commit
f92b8d1681
@ -637,14 +637,14 @@ function fpc_div_currency(n,z : currency) : currency; compilerproc;
|
||||
function fpc_mod_currency(n,z : currency) : currency; compilerproc;
|
||||
|
||||
{$ifdef FPC_INCLUDE_SOFTWARE_SHIFT_INT64}
|
||||
function fpc_shl_qword(value : qword; shift : sizeint) : qword; compilerproc;
|
||||
function fpc_shr_qword(value : qword; shift : sizeint) : qword; compilerproc;
|
||||
function fpc_shl_int64(value : int64; shift : sizeint) : int64; compilerproc;
|
||||
function fpc_shr_int64(value : int64; shift : sizeint) : int64; compilerproc;
|
||||
procedure fpc_shl_assign_qword(var value : qword; shift : sizeint); compilerproc;
|
||||
procedure fpc_shr_assign_qword(var value : qword; shift : sizeint); compilerproc;
|
||||
procedure fpc_shl_assign_int64(var value : int64; shift : sizeint); compilerproc;
|
||||
procedure fpc_shr_assign_int64(var value : int64; shift : sizeint); compilerproc;
|
||||
function fpc_shl_qword(value : qword; shift : ALUUInt) : qword; compilerproc;
|
||||
function fpc_shr_qword(value : qword; shift : ALUUInt) : qword; compilerproc;
|
||||
function fpc_shl_int64(value : int64; shift : ALUUInt) : int64; compilerproc;
|
||||
function fpc_shr_int64(value : int64; shift : ALUUInt) : int64; compilerproc;
|
||||
procedure fpc_shl_assign_qword(var value : qword; shift : ALUUInt); compilerproc;
|
||||
procedure fpc_shr_assign_qword(var value : qword; shift : ALUUInt); compilerproc;
|
||||
procedure fpc_shl_assign_int64(var value : int64; shift : ALUUInt); compilerproc;
|
||||
procedure fpc_shr_assign_int64(var value : int64; shift : ALUUInt); compilerproc;
|
||||
{$endif FPC_INCLUDE_SOFTWARE_SHIFT_INT64}
|
||||
{$ifndef FPC_HAS_INTERNAL_SAR_ASSIGN_QWORD}
|
||||
procedure fpc_sar_assign_int64(var AValue : Int64;const Shift : Byte);compilerproc;
|
||||
|
@ -34,7 +34,7 @@
|
||||
{$ifdef FPC_INCLUDE_SOFTWARE_SHIFT_INT64}
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHL_QWORD}
|
||||
function fpc_shl_qword(value : qword;shift : sizeint) : qword; [public,alias: 'FPC_SHL_QWORD']; compilerproc;
|
||||
function fpc_shl_qword(value : qword;shift : ALUUInt) : qword; [public,alias: 'FPC_SHL_QWORD']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift=0 then
|
||||
@ -54,7 +54,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHL_ASSIGN_QWORD}
|
||||
procedure fpc_shl_assign_qword(var value : qword;shift : sizeint); [public,alias: 'FPC_SHL_ASSIGN_QWORD']; compilerproc;
|
||||
procedure fpc_shl_assign_qword(var value : qword;shift : ALUUInt); [public,alias: 'FPC_SHL_ASSIGN_QWORD']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift<>0 then
|
||||
@ -75,7 +75,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHR_QWORD}
|
||||
function fpc_shr_qword(value : qword;shift : sizeint) : qword; [public,alias: 'FPC_SHR_QWORD']; compilerproc;
|
||||
function fpc_shr_qword(value : qword;shift : ALUUInt) : qword; [public,alias: 'FPC_SHR_QWORD']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift=0 then
|
||||
@ -95,7 +95,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHR_ASSIGN_QWORD}
|
||||
procedure fpc_shr_assign_qword(var value : qword;shift : sizeint); [public,alias: 'FPC_SHR_ASSIGN_QWORD']; compilerproc;
|
||||
procedure fpc_shr_assign_qword(var value : qword;shift : ALUUInt); [public,alias: 'FPC_SHR_ASSIGN_QWORD']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift<>0 then
|
||||
@ -116,7 +116,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHL_INT64}
|
||||
function fpc_shl_int64(value : int64;shift : sizeint) : int64; [public,alias: 'FPC_SHL_INT64']; compilerproc;
|
||||
function fpc_shl_int64(value : int64;shift : ALUUInt) : int64; [public,alias: 'FPC_SHL_INT64']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift=0 then
|
||||
@ -136,7 +136,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHL_ASSIGN_INT64}
|
||||
procedure fpc_shl_assign_int64(var value : int64;shift : sizeint); [public,alias: 'FPC_SHL_ASSIGN_INT64']; compilerproc;
|
||||
procedure fpc_shl_assign_int64(var value : int64;shift : ALUUInt); [public,alias: 'FPC_SHL_ASSIGN_INT64']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift<>0 then
|
||||
@ -157,7 +157,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHR_INT64}
|
||||
function fpc_shr_int64(value : int64;shift : sizeint) : int64; [public,alias: 'FPC_SHR_INT64']; compilerproc;
|
||||
function fpc_shr_int64(value : int64;shift : ALUUInt) : int64; [public,alias: 'FPC_SHR_INT64']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift=0 then
|
||||
@ -177,7 +177,7 @@
|
||||
|
||||
|
||||
{$ifndef FPC_SYSTEM_HAS_SHR_ASSIGN_INT64}
|
||||
procedure fpc_shr_assign_int64(var value : int64;shift : sizeint); [public,alias: 'FPC_SHR_ASSIGN_INT64']; compilerproc;
|
||||
procedure fpc_shr_assign_int64(var value : int64;shift : ALUUInt); [public,alias: 'FPC_SHR_ASSIGN_INT64']; compilerproc;
|
||||
begin
|
||||
shift:=shift and 63;
|
||||
if shift<>0 then
|
||||
|
@ -614,10 +614,10 @@ function fpc_mul_longint_to_int64(f1,f2 : longint) : int64; compilerproc;
|
||||
*)
|
||||
|
||||
{$ifdef FPC_INCLUDE_SOFTWARE_SHIFT_INT64}
|
||||
function fpc_shl_qword(value : qword; shift : sizeint) : qword; compilerproc;
|
||||
function fpc_shr_qword(value : qword; shift : sizeint) : qword; compilerproc;
|
||||
function fpc_shl_int64(value : int64; shift : sizeint) : int64; compilerproc;
|
||||
function fpc_shr_int64(value : int64; shift : sizeint) : int64; compilerproc;
|
||||
function fpc_shl_qword(value : qword; shift : ALUUInt) : qword; compilerproc;
|
||||
function fpc_shr_qword(value : qword; shift : ALUUInt) : qword; compilerproc;
|
||||
function fpc_shl_int64(value : int64; shift : ALUUInt) : int64; compilerproc;
|
||||
function fpc_shr_int64(value : int64; shift : ALUUInt) : int64; compilerproc;
|
||||
{$endif FPC_INCLUDE_SOFTWARE_SHIFT_INT64}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user