Extracting members of a SIMD type?

Jack Lloyd lloyd@randombit.net
Tue Dec 9 14:12:00 GMT 2003


On Tue, 9 Dec 2003, Segher Boessenkool wrote:

> Create a union of your vector type and an array of the type of the 
> parts.
> Like:
> 
> union v4si_conv {
> 	v4si v;
> 	int e[4];
> };
> 
> Store the vector to v, read the elements from e[].

Oof. That's awfully elegant. :) Well, whatever works...

Thanks,
  Jack



More information about the Gcc-help mailing list