so i'm using sse2 and i'd like to use movaps (and similar instructions) which requires objects to be laid out at 16 byte boundaries (otherwise it segfaults).
how can i force the compiler to put all instances at 16 byte bounds?Code:so far i have: struct Vector4 { float c[4]; ... };
i'm using g++. and simply putting a pragma pack around that struct didnt help (wrong usage i guess ^^).
so if anyone knows how to force alignments of all instances then please tell me.
(i couldn't find any satisfying anwer with google)