16 byte alignment
Shahid
Shahid at party.van
Thu Jun 2 09:51:11 PDT 2011
I'm working with 64bit iasm and I would like to have some constant data
16 byte aligned.
I have near the top of my source file:
__gshared immutable
{
ulong[2] sse_0F = [0x0F0F_0F0F_0F0F_0F0F,0x0F0F_0F0F_0F0F_0F0F];
ulong[2] sse_30 = [0x3030_3030_3030_3030,0x3030_3030_3030_3030];
}
However getting this to be 16 byte aligned is a bit of a headache.
I noticed in the DMD changelog:
DMD 2.007
"Data items in static data segment >= 16 bytes in size are now paragraph
aligned."
I have no idea what "paragraph aligned" means.
If it's not possible, could someone point me whereabouts in the dmd
source is responsible for static data alignment?
More information about the Digitalmars-d-learn
mailing list