On 4 April 2013 19:02, Walter Bright <walter@digitalmars.com> wrote:

On 4/4/2013 9:57 AM, Iain Buclaw wrote:
What exactly is this testing for?  Should I even care if it fails?

https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/test42.d#L613

It *looks* like it is expecting the data to be aligned to 16 bytes.

Yes.


But why should this matter?

People use such constructs to support SIMD code, which requires 16 byte alignment.


Is this expected for all shared types? Or just shared structs.


--
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';