Alignment of dynamic arrays

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 9 03:19:46 PST 2015


Robert burner Schadek:

> IMO, If you slice a double array it is always aligned. Because 
> doubles are 8 bytes long aka 64bit which would align them to 
> every fourth 16bit boundary.

If you have a 16-byte aligned array of doubles and you slice the 
first double away, what's the alignment of the result?

Bye,
bearophile


More information about the Digitalmars-d mailing list