|
@@ -445,11 +445,14 @@ function aligntoptr(p : pointer) : pointer;inline;
|
|
|
|
|
|
|
|
|
|
function aligntoqword(p : pointer) : pointer;inline;
|
|
function aligntoqword(p : pointer) : pointer;inline;
|
|
|
|
+{$push}
|
|
|
|
+{$packrecords c}
|
|
type
|
|
type
|
|
TAlignCheck = record
|
|
TAlignCheck = record
|
|
b : byte;
|
|
b : byte;
|
|
q : qword;
|
|
q : qword;
|
|
end;
|
|
end;
|
|
|
|
+{$pop}
|
|
begin
|
|
begin
|
|
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
|
|
{$ifdef FPC_REQUIRES_PROPER_ALIGNMENT}
|
|
result:=align(p,PtrInt(@TAlignCheck(nil^).q))
|
|
result:=align(p,PtrInt(@TAlignCheck(nil^).q))
|