Struct simd_abstraction::arch::x86::AVX2

source ·
pub struct AVX2(_);

Trait Implementations§

source§

impl Clone for AVX2

source§

fn clone(&self) -> AVX2

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AVX2

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl InstructionSet for AVX2

source§

fn is_enabled() -> bool

source§

unsafe fn new() -> Self

source§

fn detect() -> Option<Self>

source§

impl SIMD128 for AVX2

§

type V128 = __m128i

source§

unsafe fn v128_load(self, addr: *const u8) -> Self::V128

source§

unsafe fn v128_load_unaligned(self, addr: *const u8) -> Self::V128

source§

unsafe fn v128_store_unaligned(self, addr: *mut u8, a: Self::V128)

source§

fn v128_or(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn v128_and(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn v128_andnot(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn v128_to_bytes(self, a: Self::V128) -> [u8; 16]

source§

fn v128_create_zero(self) -> Self::V128

source§

fn v128_all_zero(self, a: Self::V128) -> bool

source§

fn u8x16_splat(self, x: u8) -> Self::V128

source§

fn u8x16_swizzle(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn u8x16_add(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn u8x16_sub(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn u8x16_sub_sat(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn u8x16_any_zero(self, a: Self::V128) -> bool

source§

fn u8x16_min(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn i8x16_splat(self, x: i8) -> Self::V128

source§

fn i8x16_cmp_lt(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn i8x16_cmp_eq(self, a: Self::V128, b: Self::V128) -> Self::V128

source§

fn u16x8_shl<const IMM8: i32>(self, a: Self::V128) -> Self::V128

source§

fn u16x8_shr<const IMM8: i32>(self, a: Self::V128) -> Self::V128

source§

fn u16x8_splat(self, x: u16) -> Self::V128

source§

fn u32x4_splat(self, x: u32) -> Self::V128

source§

fn u32x4_shl<const IMM8: i32>(self, a: Self::V128) -> Self::V128

source§

fn u32x4_shr<const IMM8: i32>(self, a: Self::V128) -> Self::V128

source§

impl SIMD256 for AVX2

§

type V256 = __m256i

source§

fn v256_from_v128x2(self, a: Self::V128, b: Self::V128) -> Self::V256

source§

fn v256_to_v128x2(self, a: Self::V256) -> (Self::V128, Self::V128)

source§

fn v256_to_bytes(self, a: Self::V256) -> [u8; 32]

source§

fn u16x16_from_u8x16(self, a: Self::V128) -> Self::V256

source§

fn u64x4_unzip_low(self, a: Self::V256) -> Self::V128

source§

unsafe fn v256_load(self, addr: *const u8) -> Self::V256

source§

unsafe fn v256_load_unaligned(self, addr: *const u8) -> Self::V256

source§

unsafe fn v256_store_unaligned(self, addr: *mut u8, a: Self::V256)

source§

fn v256_or(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn v256_and(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn v256_andnot(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn v256_create_zero(self) -> Self::V256

source§

fn v256_all_zero(self, a: Self::V256) -> bool

source§

fn v256_get_low(self, a: Self::V256) -> Self::V128

source§

fn v256_get_high(self, a: Self::V256) -> Self::V128

source§

fn u8x32_splat(self, x: u8) -> Self::V256

source§

fn u8x32_add(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn u8x32_sub(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn u8x32_any_zero(self, a: Self::V256) -> bool

source§

fn u8x16x2_swizzle(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn i8x32_splat(self, x: i8) -> Self::V256

source§

fn i8x32_cmp_lt(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn i8x32_cmp_eq(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn u16x16_shl<const IMM8: i32>(self, a: Self::V256) -> Self::V256

source§

fn u16x16_shr<const IMM8: i32>(self, a: Self::V256) -> Self::V256

source§

fn u16x16_splat(self, x: u16) -> Self::V256

source§

fn u32x8_splat(self, x: u32) -> Self::V256

source§

fn u8x32_sub_sat(self, a: Self::V256, b: Self::V256) -> Self::V256

source§

fn u32x8_shl<const IMM8: i32>(self, a: Self::V256) -> Self::V256

source§

fn u32x8_shr<const IMM8: i32>(self, a: Self::V256) -> Self::V256

source§

impl Copy for AVX2

Auto Trait Implementations§

§

impl RefUnwindSafe for AVX2

§

impl Send for AVX2

§

impl Sync for AVX2

§

impl Unpin for AVX2

§

impl UnwindSafe for AVX2

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<S> Load<&Bytes16> for Swhere S: SIMD128,

§

type Output = <S as SIMD128>::V128

source§

fn load(self, src: &Bytes16) -> <S as Load<&Bytes16>>::Output

source§

impl<S> Load<&Bytes32> for Swhere S: SIMD256,

§

type Output = <S as SIMD256>::V256

source§

fn load(self, src: &Bytes32) -> <S as Load<&Bytes32>>::Output

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.