vsimd::bswap

Trait BSwap

Source
pub unsafe trait BSwap: POD {
    const LANES: usize;

    // Required methods
    fn swap_single(x: Self) -> Self;
    fn swap_simd<S: SIMD256>(s: S, a: V256) -> V256;
}

Required Associated Constants§

Required Methods§

Source

fn swap_single(x: Self) -> Self

Source

fn swap_simd<S: SIMD256>(s: S, a: V256) -> V256

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl BSwap for u16

Source§

const LANES: usize = 16usize

Source§

fn swap_single(x: Self) -> Self

Source§

fn swap_simd<S: SIMD256>(s: S, a: V256) -> V256

Source§

impl BSwap for u32

Source§

const LANES: usize = 8usize

Source§

fn swap_single(x: Self) -> Self

Source§

fn swap_simd<S: SIMD256>(s: S, a: V256) -> V256

Source§

impl BSwap for u64

Source§

const LANES: usize = 4usize

Source§

fn swap_single(x: Self) -> Self

Source§

fn swap_simd<S: SIMD256>(s: S, a: V256) -> V256

Implementors§