Aligning data in memory
Rory McGuire
rjmcguire at gmail.com
Mon Sep 19 01:17:14 PDT 2011
surely you would have to use
movaps XMM0, v.v;
because the alignment would only happen inside the struct?
On Sat, Sep 17, 2011 at 8:11 PM, Adam D. Ruppe <destructionator at gmail.com>wrote:
> Perhaps:
>
> void foo() {
> struct V { align(16) float[4] v = [1.0f, 2.0f, 3.0f, 4.0f]; }
> V v;
> asm {
> movaps XMM0, v;
> }
> }
>
>
> It compiles, but I'm not sure if it's actually correct.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110919/b96f1978/attachment.html>
More information about the Digitalmars-d
mailing list