alignment for data not being struct members?
bearophile
bearophileHUGS at lycos.com
Tue Nov 17 09:47:54 PST 2009
Trass3r:
> typedef double cl_double2[2] __attribute__((aligned(16)));
> typedef double cl_double4[4] __attribute__((aligned(32)));
> typedef double cl_double8[8] __attribute__((aligned(64)));
> typedef double cl_double16[16] __attribute__((aligned(128)));
Show this problem in the main D newsgroup and ask for align(n) to work on stack-allocated arrays/structs too.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list