- remove no longer needed aligntoptr() and aligntoqword() functions (all this should be handled by the typinfo unit in the future)

git-svn-id: trunk@37424 -
This commit is contained in:
svenbarth 2017-10-07 22:08:05 +00:00
parent 89645633a9
commit a0fb85b690

View File

@ -357,29 +357,6 @@ implementation
uses
fgl;
function aligntoptr(p : pointer) : pointer;inline;
begin
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
result:=align(p,sizeof(p));
{$else FPC_REQUIRES_PROPER_ALIGNMENT}
result:=p;
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
end;
function aligntoqword(p : pointer) : pointer;inline;
type
TAlignCheck = record
b : byte;
q : qword;
end;
begin
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
result:=align(p,PtrInt(@TAlignCheck(nil^).q))
{$else FPC_REQUIRES_PROPER_ALIGNMENT}
result:=p;
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}
end;
type
{ TRttiPool }