[rust-dev] RFC: Tuple Swizzling/Shuffling

Jens Nockert jens at nockert.se
Thu Jan 16 15:16:49 PST 2014

On 2014/01/17, at 0:12, Carter Schonwald <carter.schonwald at gmail.com> wrote:

> whatever the notation, it needs to be one that 
> a) gives good support for enforcing the "the shuffle is dictated at compile time"
> b) is really simple, and easy to adjust for different size SIMD vectors.   2x, 4x,8x,16x are all ones that currently and/or  will soon exist on the CPU front at the very least!

I prefer the OpenCL notation, vector.xyzw, vector.s0321 and so on. Supports up to 16 elements, which is fine with most common SIMD types. (AVX-512 with bytes and so on will always require horrible syntax, since there are so many elements)

More information about the Rust-dev mailing list