On Friday, 9 January 2015 at 00:23:47 UTC, bearophile wrote:
Luc Bourhis:

With "auto a = new double[1000]", is there any guarantee that a.ptr is aligned on a 16-byte boundary?

Arrays are aligned on a 16-byte. But if you slice them, this alignment can be broken.

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.

Reply via email to