mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 17:59:09 +02:00
Inline calls to FindSize which removes a lot of unnecessary calls.
git-svn-id: trunk@28735 -
This commit is contained in:
parent
d3755371fe
commit
e012b4fa23
@ -37,7 +37,7 @@ Unit heapmgr;
|
|||||||
|
|
||||||
procedure InternalFreeMem(Addr: Pointer; Size: ptruint); forward;
|
procedure InternalFreeMem(Addr: Pointer; Size: ptruint); forward;
|
||||||
|
|
||||||
function FindSize(p: pointer): ptruint;
|
function FindSize(p: pointer): ptruint; inline;
|
||||||
begin
|
begin
|
||||||
FindSize := PPtrUInt(p)[-1];
|
FindSize := PPtrUInt(p)[-1];
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user