#[repr(C, align(16))]pub struct u32x4 { /* private fields */ }
Implementations§
Source§impl u32x4
impl u32x4
pub const fn new(array: [u32; 4]) -> 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: Self) -> Self
pub fn mul_keep_high(self, rhs: Self) -> Self
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)
Sourcepub fn mul_widen(self, rhs: Self) -> u64x4
pub fn mul_widen(self, rhs: Self) -> u64x4
Multiplies corresponding 32 bit lanes and returns the 64 bit result on the corresponding lanes.
Effectively does two multiplies on 128 bit platforms, but is easier to use than wrapping mul_widen_u32_odd_m128i individually.
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; 4]
pub fn as_array_ref(&self) -> &[u32; 4]
pub fn as_array_mut(&mut self) -> &mut [u32; 4]
Trait Implementations§
Source§impl AddAssign<&u32x4> for u32x4
impl AddAssign<&u32x4> for u32x4
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
+=
operation. Read moreSource§impl AddAssign for u32x4
impl AddAssign for u32x4
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl BitAndAssign<&u32x4> for u32x4
impl BitAndAssign<&u32x4> for u32x4
Source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
&=
operation. Read moreSource§impl BitAndAssign for u32x4
impl BitAndAssign for u32x4
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOrAssign<&u32x4> for u32x4
impl BitOrAssign<&u32x4> for u32x4
Source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
|=
operation. Read moreSource§impl BitOrAssign for u32x4
impl BitOrAssign for u32x4
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXorAssign<&u32x4> for u32x4
impl BitXorAssign<&u32x4> for u32x4
Source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
^=
operation. Read moreSource§impl BitXorAssign for u32x4
impl BitXorAssign for u32x4
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Shl for u32x4
impl Shl for u32x4
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 u32x4
impl Shr for u32x4
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<&u32x4> for u32x4
impl SubAssign<&u32x4> for u32x4
Source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
-=
operation. Read moreSource§impl SubAssign for u32x4
impl SubAssign for u32x4
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreimpl Copy for u32x4
impl Eq for u32x4
impl Pod for u32x4
impl StructuralPartialEq for u32x4
Auto Trait Implementations§
impl Freeze for u32x4
impl RefUnwindSafe for u32x4
impl Send for u32x4
impl Sync for u32x4
impl Unpin for u32x4
impl UnwindSafe for u32x4
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
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
bits
as &Self
.