Re: packing structures and numbers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 03 October 2008 17:28, Chris Mason wrote:
> On Fri, Oct 03, 2008 at 05:22:51PM -0700, Daniel Phillips wrote:
> > And what about bitfields, does GCC pack them to the same size on all
> > arches in this case or take the easy way out as permitted by the
> > standard?
> 
> I'm not sure, I believe a bit field on a strictly defined size will be
> packed the same everywhere. But bitfields + endian conversion are messy,
> so I avoid them.

Likewise, sigh.  On the other hand, packed + endian can't really be
avoided.

Regards,

Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux