simd_aligned

Struct u16x8

Source
#[repr(C, align(16))]
pub struct u16x8 { /* private fields */ }

Implementations§

Source§

impl u16x8

Source

pub const ONE: u16x8 = _

Source

pub const ZERO: u16x8 = _

Source

pub const MAX: u16x8 = _

Source

pub const MIN: u16x8 = _

Source

pub const LANES: u16 = 8u16

The number of lanes in this SIMD vector.

Source

pub const BITS: u16 = 128u16

The size of this SIMD vector in bits.

Source§

impl u16x8

Source

pub fn new(array: [u16; 8]) -> u16x8

Source

pub fn cmp_eq(self, rhs: u16x8) -> u16x8

Source

pub fn blend(self, t: u16x8, f: u16x8) -> u16x8

Source

pub fn max(self, rhs: u16x8) -> u16x8

Source

pub fn min(self, rhs: u16x8) -> u16x8

Source

pub fn saturating_add(self, rhs: u16x8) -> u16x8

Source

pub fn saturating_sub(self, rhs: u16x8) -> u16x8

Source

pub fn from_u8x16_low(u: u8x16) -> u16x8

Unpack the lower half of the input and zero expand it to u16 values.

Source

pub fn from_u8x16_high(u: u8x16) -> u16x8

Unpack the upper half of the input and zero expand it to u16 values.

Source

pub fn mul_widen(self, rhs: u16x8) -> u32x8

multiplies two u16x8 and returns the result as a widened u32x8

Source

pub fn mul_keep_high(self, rhs: u16x8) -> u16x8

Multiples two u16x8 and return the high part of intermediate u32x8

Source

pub fn to_array(self) -> [u16; 8]

Source

pub fn as_array_ref(&self) -> &[u16; 8]

Source

pub fn as_array_mut(&mut self) -> &mut [u16; 8]

Source§

impl u16x8

Source

pub fn splat(elem: u16) -> u16x8

Trait Implementations§

Source§

impl Add<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &u16x8) -> <u16x8 as Add<&u16x8>>::Output

Performs the + operation. Read more
Source§

impl Add<u16> for u16x8

Source§

type Output = u16x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16) -> <u16x8 as Add<u16>>::Output

Performs the + operation. Read more
Source§

impl Add for u16x8

Source§

type Output = u16x8

The resulting type after applying the + operator.
Source§

fn add(self, rhs: u16x8) -> <u16x8 as Add>::Output

Performs the + operation. Read more
Source§

impl AddAssign<&u16x8> for u16x8

Source§

fn add_assign(&mut self, rhs: &u16x8)

Performs the += operation. Read more
Source§

impl AddAssign for u16x8

Source§

fn add_assign(&mut self, rhs: u16x8)

Performs the += operation. Read more
Source§

impl Binary for u16x8

Source§

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

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

impl BitAnd<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u16x8) -> <u16x8 as BitAnd<&u16x8>>::Output

Performs the & operation. Read more
Source§

impl BitAnd for u16x8

Source§

type Output = u16x8

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16x8) -> <u16x8 as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitAndAssign<&u16x8> for u16x8

Source§

fn bitand_assign(&mut self, rhs: &u16x8)

Performs the &= operation. Read more
Source§

impl BitAndAssign for u16x8

Source§

fn bitand_assign(&mut self, rhs: u16x8)

Performs the &= operation. Read more
Source§

impl BitOr<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u16x8) -> <u16x8 as BitOr<&u16x8>>::Output

Performs the | operation. Read more
Source§

impl BitOr for u16x8

Source§

type Output = u16x8

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16x8) -> <u16x8 as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign<&u16x8> for u16x8

Source§

fn bitor_assign(&mut self, rhs: &u16x8)

Performs the |= operation. Read more
Source§

impl BitOrAssign for u16x8

Source§

fn bitor_assign(&mut self, rhs: u16x8)

Performs the |= operation. Read more
Source§

impl BitXor<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u16x8) -> <u16x8 as BitXor<&u16x8>>::Output

Performs the ^ operation. Read more
Source§

impl BitXor for u16x8

Source§

type Output = u16x8

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16x8) -> <u16x8 as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl BitXorAssign<&u16x8> for u16x8

Source§

fn bitxor_assign(&mut self, rhs: &u16x8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign for u16x8

Source§

fn bitxor_assign(&mut self, rhs: u16x8)

Performs the ^= operation. Read more
Source§

impl Clone for u16x8

Source§

fn clone(&self) -> u16x8

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 u16x8

Source§

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

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

impl Default for u16x8

Source§

fn default() -> u16x8

Returns the “default value” for a type. Read more
Source§

impl Display for u16x8

Source§

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

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

impl From<[u16; 8]> for u16x8

Source§

fn from(arr: [u16; 8]) -> u16x8

Converts to this type from the input type.
Source§

impl From<u16> for u16x8

Source§

fn from(elem: u16) -> u16x8

Splats the single value given across all lanes.

Source§

impl From<u16x8> for u32x8

Source§

fn from(v: u16x8) -> u32x8

widens and zero extends to u32x8

Source§

impl LowerExp for u16x8

Source§

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

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

impl LowerHex for u16x8

Source§

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

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

impl Mul<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &u16x8) -> <u16x8 as Mul<&u16x8>>::Output

Performs the * operation. Read more
Source§

impl Mul<u16> for u16x8

Source§

type Output = u16x8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16) -> <u16x8 as Mul<u16>>::Output

Performs the * operation. Read more
Source§

impl Mul for u16x8

Source§

type Output = u16x8

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: u16x8) -> <u16x8 as Mul>::Output

Performs the * operation. Read more
Source§

impl MulAssign<&u16x8> for u16x8

Source§

fn mul_assign(&mut self, rhs: &u16x8)

Performs the *= operation. Read more
Source§

impl MulAssign for u16x8

Source§

fn mul_assign(&mut self, rhs: u16x8)

Performs the *= operation. Read more
Source§

impl Neg for &u16x8

Source§

type Output = u16x8

The resulting type after applying the - operator.
Source§

fn neg(self) -> <&u16x8 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for u16x8

Source§

type Output = u16x8

The resulting type after applying the - operator.
Source§

fn neg(self) -> <u16x8 as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Not for &u16x8

Source§

type Output = u16x8

The resulting type after applying the ! operator.
Source§

fn not(self) -> <&u16x8 as Not>::Output

Performs the unary ! operation. Read more
Source§

impl Not for u16x8

Source§

type Output = u16x8

The resulting type after applying the ! operator.
Source§

fn not(self) -> <u16x8 as Not>::Output

Performs the unary ! operation. Read more
Source§

impl Octal for u16x8

Source§

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

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

impl PartialEq for u16x8

Source§

fn eq(&self, other: &u16x8) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Shl<i128> for u16x8

Source§

fn shl(self, rhs: i128) -> <u16x8 as Shl<i128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<i16> for u16x8

Source§

fn shl(self, rhs: i16) -> <u16x8 as Shl<i16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<i32> for u16x8

Source§

fn shl(self, rhs: i32) -> <u16x8 as Shl<i32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<i64> for u16x8

Source§

fn shl(self, rhs: i64) -> <u16x8 as Shl<i64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<i8> for u16x8

Source§

fn shl(self, rhs: i8) -> <u16x8 as Shl<i8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<u128> for u16x8

Source§

fn shl(self, rhs: u128) -> <u16x8 as Shl<u128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<u16> for u16x8

Source§

fn shl(self, rhs: u16) -> <u16x8 as Shl<u16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<u32> for u16x8

Source§

fn shl(self, rhs: u32) -> <u16x8 as Shl<u32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<u64> for u16x8

Source§

fn shl(self, rhs: u64) -> <u16x8 as Shl<u64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shl<u8> for u16x8

Source§

fn shl(self, rhs: u8) -> <u16x8 as Shl<u8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the << operator.
Source§

impl Shr<i128> for u16x8

Source§

fn shr(self, rhs: i128) -> <u16x8 as Shr<i128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<i16> for u16x8

Source§

fn shr(self, rhs: i16) -> <u16x8 as Shr<i16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<i32> for u16x8

Source§

fn shr(self, rhs: i32) -> <u16x8 as Shr<i32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<i64> for u16x8

Source§

fn shr(self, rhs: i64) -> <u16x8 as Shr<i64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<i8> for u16x8

Source§

fn shr(self, rhs: i8) -> <u16x8 as Shr<i8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<u128> for u16x8

Source§

fn shr(self, rhs: u128) -> <u16x8 as Shr<u128>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<u16> for u16x8

Source§

fn shr(self, rhs: u16) -> <u16x8 as Shr<u16>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<u32> for u16x8

Source§

fn shr(self, rhs: u32) -> <u16x8 as Shr<u32>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<u64> for u16x8

Source§

fn shr(self, rhs: u64) -> <u16x8 as Shr<u64>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Shr<u8> for u16x8

Source§

fn shr(self, rhs: u8) -> <u16x8 as Shr<u8>>::Output

Shifts all lanes by the value given.

Source§

type Output = u16x8

The resulting type after applying the >> operator.
Source§

impl Simd for u16x8

Source§

const LANES: usize = 8usize

The number of elements in the SIMD vector.
Source§

type Element = u16

Element type of the SIMD vector
Source§

type LanesType = [u16; 8]

The type: [u32; Self::N].
Source§

fn splat(t: Self::Element) -> Self

Added for convenience
Source§

fn as_array(&self) -> &[Self::Element]

Added for convenience
Source§

fn sum(&self) -> Self::Element

Source§

impl Sub<&u16x8> for u16x8

Source§

type Output = u16x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &u16x8) -> <u16x8 as Sub<&u16x8>>::Output

Performs the - operation. Read more
Source§

impl Sub<u16> for u16x8

Source§

type Output = u16x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16) -> <u16x8 as Sub<u16>>::Output

Performs the - operation. Read more
Source§

impl Sub for u16x8

Source§

type Output = u16x8

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: u16x8) -> <u16x8 as Sub>::Output

Performs the - operation. Read more
Source§

impl SubAssign<&u16x8> for u16x8

Source§

fn sub_assign(&mut self, rhs: &u16x8)

Performs the -= operation. Read more
Source§

impl SubAssign for u16x8

Source§

fn sub_assign(&mut self, rhs: u16x8)

Performs the -= operation. Read more
Source§

impl<RHS> Sum<RHS> for u16x8
where u16x8: AddAssign<RHS>,

Source§

fn sum<I>(iter: I) -> u16x8
where I: Iterator<Item = RHS>,

Takes an iterator and generates Self from the elements by “summing up” the items.
Source§

impl UpperExp for u16x8

Source§

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

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

impl UpperHex for u16x8

Source§

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

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

impl Zeroable for u16x8

Source§

fn zeroed() -> Self

Source§

impl Copy for u16x8

Source§

impl Eq for u16x8

Source§

impl Pod for u16x8

Source§

impl StructuralPartialEq for u16x8

Auto Trait Implementations§

§

impl Freeze for u16x8

§

impl RefUnwindSafe for u16x8

§

impl Send for u16x8

§

impl Sync for u16x8

§

impl Unpin for u16x8

§

impl UnwindSafe for u16x8

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> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
Source§

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

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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.
Source§

impl<T> AnyBitPattern for T
where T: Pod,

Source§

impl<T> NoUninit for T
where T: Pod,