[cfe-dev] offset of vector components

Jochen Wilhelmy j.wilhelmy at arcor.de
Wed Feb 24 09:25:12 PST 2010


Hi!

it would be cool if this would work:

typedef __attribute__(( ext_vector_type(4) )) float float4;

struct Bar
{
     float4 f4;
};

offsetof(Bar, f4.x);


- Jochen




More information about the cfe-dev mailing list