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

Object Safety§

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§