digitalmars.D - align structs?
- Robert Atkinson (8/8) May 02 2005 Is there anyway to align a struct, for example to 16 byte memory locatio...
- Jarrett Billingsley (4/13) May 03 2005 Nothing over align(4) seems to work. Might be a bug (or a limitation of...
Is there anyway to align a struct, for example to 16 byte memory locations?
I tried:
align(16)
struct x
{
// blah
}
but x.alignof always returns 4.
May 02 2005
"Robert Atkinson" <Robert.Atkinson gmail.com> wrote in message
news:d56uj1$nv6$1 digitaldaemon.com...
Is there anyway to align a struct, for example to 16 byte memory
locations?
I tried:
align(16)
struct x
{
// blah
}
but x.alignof always returns 4.
Nothing over align(4) seems to work. Might be a bug (or a limitation of the
compiler?).
May 03 2005








"Jarrett Billingsley" <kb3ctd2 yahoo.com>