mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 05:49:23 +02:00
+ GetPointerSize function
git-svn-id: trunk@4954 -
This commit is contained in:
parent
e4e356d996
commit
1106b6a32f
@ -87,6 +87,8 @@ procedure BClr(var i: int64; j: cardinal); {$ifdef systeminline}inline;{$endif}
|
|||||||
procedure BClr(var i: qword; j: cardinal); {$ifdef systeminline}inline;{$endif}
|
procedure BClr(var i: qword; j: cardinal); {$ifdef systeminline}inline;{$endif}
|
||||||
|
|
||||||
|
|
||||||
|
function GetPointerSize(p: pointer): ptrint; {$ifdef systeminline}inline;{$endif}
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
|
||||||
@ -303,6 +305,10 @@ begin
|
|||||||
i := i and not (qword(1) shl j);
|
i := i and not (qword(1) shl j);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function GetPointerSize(p: pointer): ptrint; {$ifdef systeminline}inline;{$endif}
|
||||||
|
begin
|
||||||
|
GetPointerSize := memsize(p);
|
||||||
|
end;
|
||||||
|
|
||||||
{$ifdef cpupowerpc}
|
{$ifdef cpupowerpc}
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user