#[repr(C, align(32))]pub struct u32x8 { /* private fields */ }
Implementations§
source§impl u32x8
impl u32x8
pub fn new(array: [u32; 8]) -> Self
pub fn cmp_eq(self, rhs: Self) -> Self
pub fn cmp_gt(self, rhs: Self) -> Self
pub fn cmp_lt(self, rhs: Self) -> Self
sourcepub fn mul_keep_high(self, rhs: u32x8) -> u32x8
pub fn mul_keep_high(self, rhs: u32x8) -> u32x8
Multiplies 32x32 bit to 64 bit and then only keeps the high 32 bits of the result. Useful for implementing divide constant value (see t_usefulness example)
pub fn blend(self, t: Self, f: Self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn any(self) -> bool
pub fn all(self) -> bool
pub fn none(self) -> bool
pub fn to_array(self) -> [u32; 8]
pub fn as_array_ref(&self) -> &[u32; 8]
pub fn as_array_mut(&mut self) -> &mut [u32; 8]
Trait Implementations§
source§impl AddAssign<&u32x8> for u32x8
impl AddAssign<&u32x8> for u32x8
source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+=
operation. Read moresource§impl AddAssign for u32x8
impl AddAssign for u32x8
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl BitAndAssign<&u32x8> for u32x8
impl BitAndAssign<&u32x8> for u32x8
source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
Performs the
&=
operation. Read moresource§impl BitAndAssign for u32x8
impl BitAndAssign for u32x8
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign<&u32x8> for u32x8
impl BitOrAssign<&u32x8> for u32x8
source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
Performs the
|=
operation. Read moresource§impl BitOrAssign for u32x8
impl BitOrAssign for u32x8
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign<&u32x8> for u32x8
impl BitXorAssign<&u32x8> for u32x8
source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
Performs the
^=
operation. Read moresource§impl BitXorAssign for u32x8
impl BitXorAssign for u32x8
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Shl for u32x8
impl Shl for u32x8
Shifts lanes by the corresponding lane.
Bitwise shift-left; yields self << mask(rhs)
, where mask removes any
high-order bits of rhs
that would cause the shift to exceed the bitwidth
of the type. (same as wrapping_shl
)
source§impl Shr for u32x8
impl Shr for u32x8
Shifts lanes by the corresponding lane.
Bitwise shift-right; yields self >> mask(rhs)
, where mask removes any
high-order bits of rhs
that would cause the shift to exceed the bitwidth
of the type. (same as wrapping_shr
)
source§impl SubAssign<&u32x8> for u32x8
impl SubAssign<&u32x8> for u32x8
source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-=
operation. Read moresource§impl SubAssign for u32x8
impl SubAssign for u32x8
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for u32x8
impl Eq for u32x8
impl Pod for u32x8
impl StructuralPartialEq for u32x8
Auto Trait Implementations§
impl Freeze for u32x8
impl RefUnwindSafe for u32x8
impl Send for u32x8
impl Sync for u32x8
impl Unpin for u32x8
impl UnwindSafe for u32x8
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
source§type Bits = T
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
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 Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)