offset of vector components

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

offset of vector components

Jochen Wilhelmy
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

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev