This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

__m128 data type *not* auto aligned with GCC. :-/


Hi,

I'm working on a port from a win32 prg to linux.
My last problem is due to automatic data alignment under VisualC++ or
ICC when u are
using __m128 data types inside your sets of structures. In fact, i
haven't been able to get
the right/same structure bytes fields organisation with GCC while using
:

__attribute__((aligned(16)))
is this aligning something??????

or

#pragma pack(push,16)
(may get same structure size but not exactly padded as it was intended)

or

the combination of both but it doesn't work aswell. ;)

Anyhow, any help is welcome on the subject! I hope that 3.3 will fix
that problem which makes Instrinsics code portability a real nightmare!
:)=

bye,

Ozzy.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]