Type Definition packed_simd_2::u128x2 [−][src]
type u128x2 = Simd<[u128; 2]>;
Expand description
A 256-bit vector with 2 u128
lanes.
Implementations
impl u128x2
[src]
impl u128x2
[src]pub const fn new(x0: u128, x1: u128) -> Self
[src]
pub const fn new(x0: u128, x1: u128) -> Self
[src]Creates a new instance with each vector elements initialized with the provided values.
pub const fn splat(value: u128) -> Self
[src]
pub const fn splat(value: u128) -> Self
[src]Constructs a new instance with each element initialized to
value
.
pub unsafe fn extract_unchecked(self, index: usize) -> u128
[src]
pub unsafe fn extract_unchecked(self, index: usize) -> u128
[src]#[must_use = "replace does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub fn replace(self, index: usize, new_value: u128) -> Self
[src]
#[must_use = "replace does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub fn replace(self, index: usize, new_value: u128) -> Self
[src]Returns a new vector where the value at index
is replaced by new_value
.
Panics
If index >= Self::lanes()
.
#[must_use = "replace_unchecked does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub unsafe fn replace_unchecked(self, index: usize, new_value: u128) -> Self
[src]
#[must_use = "replace_unchecked does not modify the original value - \ it returns a new vector with the value at `index` \ replaced by `new_value`d"]pub unsafe fn replace_unchecked(self, index: usize, new_value: u128) -> Self
[src]Returns a new vector where the value at index
is replaced by new_value
.
Safety
If index >= Self::lanes()
the behavior is undefined.
impl u128x2
[src]
impl u128x2
[src]pub fn rotate_left(self, n: u128x2) -> u128x2
[src]
pub fn rotate_left(self, n: u128x2) -> u128x2
[src]Shifts the bits of each lane to the left by the specified
amount in the corresponding lane of n
, wrapping the
truncated bits to the end of the resulting integer.
Note: this is neither the same operation as <<
nor equivalent
to slice::rotate_left
.
pub fn rotate_right(self, n: u128x2) -> u128x2
[src]
pub fn rotate_right(self, n: u128x2) -> u128x2
[src]Shifts the bits of each lane to the right by the specified
amount in the corresponding lane of n
, wrapping the
truncated bits to the beginning of the resulting integer.
Note: this is neither the same operation as <<
nor equivalent
to slice::rotate_left
.
impl u128x2
[src]
impl u128x2
[src]impl u128x2
[src]
impl u128x2
[src]pub fn wrapping_sum(self) -> u128
[src]
pub fn wrapping_sum(self) -> u128
[src]Horizontal wrapping sum of the vector elements.
The intrinsic performs a tree-reduction of the vector elements. That is, for an 8 element vector:
((x0 + x1) + (x2 + x3)) + ((x4 + x5) + (x6 + x7))
If an operation overflows it returns the mathematical result
modulo 2^n
where n
is the number of times it overflows.
pub fn wrapping_product(self) -> u128
[src]
pub fn wrapping_product(self) -> u128
[src]Horizontal wrapping product of the vector elements.
The intrinsic performs a tree-reduction of the vector elements. That is, for an 8 element vector:
((x0 * x1) * (x2 * x3)) * ((x4 * x5) * (x6 * x7))
If an operation overflows it returns the mathematical result
modulo 2^n
where n
is the number of times it overflows.
impl u128x2
[src]
impl u128x2
[src]pub fn max_element(self) -> u128
[src]
pub fn max_element(self) -> u128
[src]Largest vector element value.
pub fn min_element(self) -> u128
[src]
pub fn min_element(self) -> u128
[src]Smallest vector element value.
impl u128x2
[src]
impl u128x2
[src]pub fn and(self) -> u128
[src]
pub fn and(self) -> u128
[src]Lane-wise bitwise and
of the vector elements.
Note: if the vector has one lane, the first element of the vector is returned.
impl u128x2
[src]
impl u128x2
[src]pub fn from_slice_aligned(slice: &[u128]) -> Self
[src]
pub fn from_slice_aligned(slice: &[u128]) -> Self
[src]Instantiates a new vector with the values of the slice
.
Panics
If slice.len() < Self::lanes()
or &slice[0]
is not aligned
to an align_of::<Self>()
boundary.
pub fn from_slice_unaligned(slice: &[u128]) -> Self
[src]
pub fn from_slice_unaligned(slice: &[u128]) -> Self
[src]pub unsafe fn from_slice_aligned_unchecked(slice: &[u128]) -> Self
[src]
pub unsafe fn from_slice_aligned_unchecked(slice: &[u128]) -> Self
[src]Instantiates a new vector with the values of the slice
.
Safety
If slice.len() < Self::lanes()
or &slice[0]
is not aligned
to an align_of::<Self>()
boundary, the behavior is undefined.
pub unsafe fn from_slice_unaligned_unchecked(slice: &[u128]) -> Self
[src]
pub unsafe fn from_slice_unaligned_unchecked(slice: &[u128]) -> Self
[src]Instantiates a new vector with the values of the slice
.
Safety
If slice.len() < Self::lanes()
the behavior is undefined.
impl u128x2
[src]
impl u128x2
[src]pub fn write_to_slice_aligned(self, slice: &mut [u128])
[src]
pub fn write_to_slice_aligned(self, slice: &mut [u128])
[src]Writes the values of the vector to the slice
.
Panics
If slice.len() < Self::lanes()
or &slice[0]
is not
aligned to an align_of::<Self>()
boundary.
pub fn write_to_slice_unaligned(self, slice: &mut [u128])
[src]
pub fn write_to_slice_unaligned(self, slice: &mut [u128])
[src]pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [u128])
[src]
pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [u128])
[src]Writes the values of the vector to the slice
.
Safety
If slice.len() < Self::lanes()
or &slice[0]
is not
aligned to an align_of::<Self>()
boundary, the behavior is
undefined.
pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [u128])
[src]
pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [u128])
[src]Writes the values of the vector to the slice
.
Safety
If slice.len() < Self::lanes()
the behavior is undefined.
impl u128x2
[src]
impl u128x2
[src]pub fn swap_bytes(self) -> Self
[src]
pub fn swap_bytes(self) -> Self
[src]Reverses the byte order of the vector.
pub fn to_le(self) -> Self
[src]
pub fn to_le(self) -> Self
[src]Converts self to little endian from the target’s endianness.
On little endian this is a no-op. On big endian the bytes are swapped.
pub fn to_be(self) -> Self
[src]
pub fn to_be(self) -> Self
[src]Converts self to big endian from the target’s endianness.
On big endian this is a no-op. On little endian the bytes are swapped.
impl u128x2
[src]
impl u128x2
[src]pub fn count_ones(self) -> Self
[src]
pub fn count_ones(self) -> Self
[src]Returns the number of ones in the binary representation of
the lanes of self
.
pub fn count_zeros(self) -> Self
[src]
pub fn count_zeros(self) -> Self
[src]Returns the number of zeros in the binary representation of
the lanes of self
.
pub fn leading_zeros(self) -> Self
[src]
pub fn leading_zeros(self) -> Self
[src]Returns the number of leading zeros in the binary
representation of the lanes of self
.
pub fn trailing_zeros(self) -> Self
[src]
pub fn trailing_zeros(self) -> Self
[src]Returns the number of trailing zeros in the binary
representation of the lanes of self
.
impl u128x2
[src]
impl u128x2
[src]pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
Self: Shuffle1Dyn<Indices = I>,
[src]
pub fn shuffle1_dyn<I>(self, indices: I) -> Self where
Self: Shuffle1Dyn<Indices = I>,
[src]Shuffle vector elements according to indices
.
impl u128x2
[src]
impl u128x2
[src]impl u128x2
[src]
impl u128x2
[src]pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<u128x2>
[src]
pub fn partial_lex_ord(&self) -> LexicographicallyOrdered<u128x2>
[src]Returns a wrapper that implements PartialOrd
.
impl u128x2
[src]
impl u128x2
[src]pub fn lex_ord(&self) -> LexicographicallyOrdered<u128x2>
[src]
pub fn lex_ord(&self) -> LexicographicallyOrdered<u128x2>
[src]Returns a wrapper that implements Ord
.
impl u128x2
[src]
impl u128x2
[src]Trait Implementations
impl AddAssign<Simd<[u128; 2]>> for u128x2
[src]
impl AddAssign<Simd<[u128; 2]>> for u128x2
[src]fn add_assign(&mut self, other: Self)
[src]
fn add_assign(&mut self, other: Self)
[src]Performs the +=
operation. Read more
impl AddAssign<u128> for u128x2
[src]
impl AddAssign<u128> for u128x2
[src]fn add_assign(&mut self, other: u128)
[src]
fn add_assign(&mut self, other: u128)
[src]Performs the +=
operation. Read more
impl BitAndAssign<Simd<[u128; 2]>> for u128x2
[src]
impl BitAndAssign<Simd<[u128; 2]>> for u128x2
[src]fn bitand_assign(&mut self, other: Self)
[src]
fn bitand_assign(&mut self, other: Self)
[src]Performs the &=
operation. Read more
impl BitAndAssign<u128> for u128x2
[src]
impl BitAndAssign<u128> for u128x2
[src]fn bitand_assign(&mut self, other: u128)
[src]
fn bitand_assign(&mut self, other: u128)
[src]Performs the &=
operation. Read more
impl BitOrAssign<Simd<[u128; 2]>> for u128x2
[src]
impl BitOrAssign<Simd<[u128; 2]>> for u128x2
[src]fn bitor_assign(&mut self, other: Self)
[src]
fn bitor_assign(&mut self, other: Self)
[src]Performs the |=
operation. Read more
impl BitOrAssign<u128> for u128x2
[src]
impl BitOrAssign<u128> for u128x2
[src]fn bitor_assign(&mut self, other: u128)
[src]
fn bitor_assign(&mut self, other: u128)
[src]Performs the |=
operation. Read more
impl BitXorAssign<Simd<[u128; 2]>> for u128x2
[src]
impl BitXorAssign<Simd<[u128; 2]>> for u128x2
[src]fn bitxor_assign(&mut self, other: Self)
[src]
fn bitxor_assign(&mut self, other: Self)
[src]Performs the ^=
operation. Read more
impl BitXorAssign<u128> for u128x2
[src]
impl BitXorAssign<u128> for u128x2
[src]fn bitxor_assign(&mut self, other: u128)
[src]
fn bitxor_assign(&mut self, other: u128)
[src]Performs the ^=
operation. Read more
impl DivAssign<Simd<[u128; 2]>> for u128x2
[src]
impl DivAssign<Simd<[u128; 2]>> for u128x2
[src]fn div_assign(&mut self, other: Self)
[src]
fn div_assign(&mut self, other: Self)
[src]Performs the /=
operation. Read more
impl DivAssign<u128> for u128x2
[src]
impl DivAssign<u128> for u128x2
[src]fn div_assign(&mut self, other: u128)
[src]
fn div_assign(&mut self, other: u128)
[src]Performs the /=
operation. Read more
impl MulAssign<Simd<[u128; 2]>> for u128x2
[src]
impl MulAssign<Simd<[u128; 2]>> for u128x2
[src]fn mul_assign(&mut self, other: Self)
[src]
fn mul_assign(&mut self, other: Self)
[src]Performs the *=
operation. Read more
impl MulAssign<u128> for u128x2
[src]
impl MulAssign<u128> for u128x2
[src]fn mul_assign(&mut self, other: u128)
[src]
fn mul_assign(&mut self, other: u128)
[src]Performs the *=
operation. Read more
impl RemAssign<Simd<[u128; 2]>> for u128x2
[src]
impl RemAssign<Simd<[u128; 2]>> for u128x2
[src]fn rem_assign(&mut self, other: Self)
[src]
fn rem_assign(&mut self, other: Self)
[src]Performs the %=
operation. Read more
impl RemAssign<u128> for u128x2
[src]
impl RemAssign<u128> for u128x2
[src]fn rem_assign(&mut self, other: u128)
[src]
fn rem_assign(&mut self, other: u128)
[src]Performs the %=
operation. Read more
impl ShlAssign<Simd<[u128; 2]>> for u128x2
[src]
impl ShlAssign<Simd<[u128; 2]>> for u128x2
[src]fn shl_assign(&mut self, other: Self)
[src]
fn shl_assign(&mut self, other: Self)
[src]Performs the <<=
operation. Read more
impl ShlAssign<u32> for u128x2
[src]
impl ShlAssign<u32> for u128x2
[src]fn shl_assign(&mut self, other: u32)
[src]
fn shl_assign(&mut self, other: u32)
[src]Performs the <<=
operation. Read more
impl ShrAssign<Simd<[u128; 2]>> for u128x2
[src]
impl ShrAssign<Simd<[u128; 2]>> for u128x2
[src]fn shr_assign(&mut self, other: Self)
[src]
fn shr_assign(&mut self, other: Self)
[src]Performs the >>=
operation. Read more
impl ShrAssign<u32> for u128x2
[src]
impl ShrAssign<u32> for u128x2
[src]fn shr_assign(&mut self, other: u32)
[src]
fn shr_assign(&mut self, other: u32)
[src]Performs the >>=
operation. Read more
impl SubAssign<Simd<[u128; 2]>> for u128x2
[src]
impl SubAssign<Simd<[u128; 2]>> for u128x2
[src]fn sub_assign(&mut self, other: Self)
[src]
fn sub_assign(&mut self, other: Self)
[src]Performs the -=
operation. Read more
impl SubAssign<u128> for u128x2
[src]
impl SubAssign<u128> for u128x2
[src]fn sub_assign(&mut self, other: u128)
[src]
fn sub_assign(&mut self, other: u128)
[src]Performs the -=
operation. Read more