Re: [PATCH 1/3] 24-bit types: typedef and macros for accessing 3-byte arrays as integers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Leech
Date: Wednesday, September 10, 2008 - 6:51 pm

On Wed, Sep 10, 2008 at 9:11 AM, Boaz Harrosh <bharrosh@panasas.com> wrote:

I haven't seen padding added simply because of a nested structure
boundary, but I'm not up on all the ABIs for the different
architectures.  Obviously a containing structure would want to have
the 24-bit type adjacent to an 8-bit type, or have it's own packed
attribute if needed.

It shouldn't hurt, in this case the members shouldn't be expected to
have more than byte alignment anyway, but I can't see how it would
help.

If there's a particular arch that might be a problem I'm happy to look
into it, but I don't want to start throwing packed attributes around
just in case.

Chris
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] 24-bit types: typedef and macros for acces ..., Christoph Hellwig, (Wed Sep 10, 7:07 am)
Re: [PATCH 1/3] 24-bit types: typedef and macros for acces ..., Chris Leech, (Wed Sep 10, 6:51 pm)