[fpc-devel] size of bitpacked records ?

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jan 30 09:59:48 CET 2014



On 30 Jan 2014, at 09:36, Gennadiy Poryev <core at barvinok.net> wrote:

> Here's what it produces when built for Win32
> 
> SizeOf(Struct1Byte) = 1
> SizeOf(Struct2Byte) = 2
> SizeOf(Struct3Byte) = 3
> SizeOf(Struct4Byte) = 4
> SizeOf(Struct5Byte) = 8
> SizeOf(Struct6Byte) = 8
> SizeOf(Struct7Byte) = 8
[snip]
> 
> Am I misusing bitpacked records somehow, or does this qualify as a bug?

Bitpacking only packs ordinals up to the native integer size.


Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140130/8670ac3c/attachment.html>


More information about the fpc-devel mailing list