Struct u16x8

Source
#[repr(C, align(16))]
pub struct u16x8<S: Simd> { pub val: [u16; 8], pub simd: S, }

Fields§

§val: [u16; 8]§simd: S

Implementations§

Source§

impl<S: Simd> u16x8<S>

Source

pub fn not(self) -> u16x8<S>

Source

pub fn add(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn sub(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn mul(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn and(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn or(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn xor(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn shr(self, shift: u32) -> u16x8<S>

Source

pub fn simd_eq(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source

pub fn simd_lt(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source

pub fn simd_le(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source

pub fn simd_ge(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source

pub fn simd_gt(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source

pub fn min(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn max(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source

pub fn combine(self, rhs: impl SimdInto<Self, S>) -> u16x16<S>

Source

pub fn reinterpret_u8(self) -> u8x16<S>

Source

pub fn reinterpret_u32(self) -> u32x4<S>

Trait Implementations§

Source§

impl<S: Simd> Add<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> Self::Output

Performs the + operation. Read more
Source§

impl<S: Simd> Add<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16x8<S>) -> Self::Output

Performs the + operation. Read more
Source§

impl<S: Simd> Add for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl<S: Simd> BitAnd<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16) -> Self::Output

Performs the & operation. Read more
Source§

impl<S: Simd> BitAnd<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16x8<S>) -> Self::Output

Performs the & operation. Read more
Source§

impl<S: Simd> BitAnd for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Source§

impl<S: Simd> BitOr<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16) -> Self::Output

Performs the | operation. Read more
Source§

impl<S: Simd> BitOr<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16x8<S>) -> Self::Output

Performs the | operation. Read more
Source§

impl<S: Simd> BitOr for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Source§

impl<S: Simd> BitXor<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<S: Simd> BitXor<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16x8<S>) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<S: Simd> BitXor for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Source§

impl<S: Simd> Bytes for u16x8<S>

Source§

type Bytes = u8x16<S>

Source§

fn to_bytes(self) -> Self::Bytes

Source§

fn from_bytes(value: Self::Bytes) -> Self

Source§

fn bitcast<U: Bytes<Bytes = Self::Bytes>>(self) -> U

Source§

impl<S: Clone + Simd> Clone for u16x8<S>

Source§

fn clone(&self) -> u16x8<S>

Returns a duplicate 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<S: Debug + Simd> Debug for u16x8<S>

Source§

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

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

impl<S: Simd> Deref for u16x8<S>

Source§

type Target = [u16; 8]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<S: Simd> DerefMut for u16x8<S>

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl<S: Simd> From<u16x8<S>> for [u16; 8]

Source§

fn from(value: u16x8<S>) -> Self

Converts to this type from the input type.
Source§

impl<S: Simd> From<u16x8<S>> for __m128i

Source§

fn from(value: u16x8<S>) -> Self

Converts to this type from the input type.
Source§

impl<S: Simd> Mul<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Simd> Mul<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16x8<S>) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Simd> Mul for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<S: Simd> Select<u16x8<S>> for mask16x8<S>

Source§

fn select(self, if_true: u16x8<S>, if_false: u16x8<S>) -> u16x8<S>

Source§

impl<S: Simd> SimdBase<u16, S> for u16x8<S>

Source§

const N: usize = 8usize

Source§

type Mask = mask16x8<S>

A SIMD vector mask with the same number of elements. Read more
Source§

type Block = u16x8<S>

A 128 bit SIMD vector of the same scalar type.
Source§

fn as_slice(&self) -> &[u16]

Source§

fn as_mut_slice(&mut self) -> &mut [u16]

Source§

fn from_slice(simd: S, slice: &[u16]) -> Self

Create a SIMD vector from a slice. Read more
Source§

fn splat(simd: S, val: u16) -> Self

Source§

fn block_splat(block: Self::Block) -> Self

Source§

impl<S: Simd> SimdFrom<[u16; 8], S> for u16x8<S>

Source§

fn simd_from(val: [u16; 8], simd: S) -> Self

Source§

impl<S: Simd> SimdFrom<__m128i, S> for u16x8<S>

Source§

fn simd_from(arch: __m128i, simd: S) -> Self

Source§

impl<S: Simd> SimdFrom<u16, S> for u16x8<S>

Source§

fn simd_from(value: u16, simd: S) -> Self

Source§

impl<S: Simd> SimdInt<u16, S> for u16x8<S>

Source§

fn simd_eq(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source§

fn simd_lt(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source§

fn simd_le(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source§

fn simd_ge(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source§

fn simd_gt(self, rhs: impl SimdInto<Self, S>) -> mask16x8<S>

Source§

fn zip_low(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn zip_high(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn unzip_low(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn unzip_high(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn min(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn max(self, rhs: impl SimdInto<Self, S>) -> u16x8<S>

Source§

fn to_float<T: SimdCvtFloat<Self>>(self) -> T

Source§

impl<S: Simd> Sub<u16> for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> Self::Output

Performs the - operation. Read more
Source§

impl<S: Simd> Sub<u16x8<S>> for u16

Source§

type Output = u16x8<S>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16x8<S>) -> Self::Output

Performs the - operation. Read more
Source§

impl<S: Simd> Sub for u16x8<S>

Source§

type Output = u16x8<S>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl<S: Copy + Simd> Copy for u16x8<S>

Auto Trait Implementations§

§

impl<S> Freeze for u16x8<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for u16x8<S>
where S: RefUnwindSafe,

§

impl<S> Send for u16x8<S>

§

impl<S> Sync for u16x8<S>

§

impl<S> Unpin for u16x8<S>
where S: Unpin,

§

impl<S> UnwindSafe for u16x8<S>
where S: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(value: T, _simd: S) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.