Trait faster::intrin::PackedSwizzle
[−]
[src]
pub trait PackedSwizzle { fn flip(&self) -> Self; }
Required Methods
fn flip(&self) -> Self
Return a vector containing elements of self, but with even and odd elements swapped in-place. For (n = 0, 2, ... Self::WIDTH), elements at indices n and n + 1 are swapped.
extern crate faster; use faster::*; assert_eq!(u8s::interleave(2, 1).flip(), u8s::interleave(1, 2)); assert_eq!(u64s::interleave(2, 1).flip(), u64s::interleave(1, 2));
Implementors
impl PackedSwizzle for u8x64
impl PackedSwizzle for u8x32
impl PackedSwizzle for u8x16
impl PackedSwizzle for i8x64
impl PackedSwizzle for i8x32
impl PackedSwizzle for i8x16
impl PackedSwizzle for u16x32
impl PackedSwizzle for u16x16
impl PackedSwizzle for u16x8
impl PackedSwizzle for i16x32
impl PackedSwizzle for i16x16
impl PackedSwizzle for i16x8
impl PackedSwizzle for u32x16
impl PackedSwizzle for u32x8
impl PackedSwizzle for u32x4
impl PackedSwizzle for i32x16
impl PackedSwizzle for i32x8
impl PackedSwizzle for i32x4
impl PackedSwizzle for f32x16
impl PackedSwizzle for f32x8
impl PackedSwizzle for f32x4
impl PackedSwizzle for u64x8
impl PackedSwizzle for u64x4
impl PackedSwizzle for u64x2
impl PackedSwizzle for i64x8
impl PackedSwizzle for i64x4
impl PackedSwizzle for i64x2
impl PackedSwizzle for f64x8
impl PackedSwizzle for f64x4
impl PackedSwizzle for f64x2