#[repr(C, align(16))]pub struct i16x8 { /* private fields */ }Implementations§
source§impl i16x8
impl i16x8
pub fn new(array: [i16; 8]) -> Self
pub fn blend(self, t: Self, f: Self) -> Self
pub fn abs(self) -> Self
pub fn max(self, rhs: Self) -> Self
pub fn min(self, rhs: Self) -> Self
pub fn saturating_add(self, rhs: Self) -> Self
pub fn saturating_sub(self, rhs: Self) -> Self
sourcepub fn mul_scale_round(self, rhs: Self) -> Self
pub fn mul_scale_round(self, rhs: Self) -> Self
Multiply and scale equivilent to ((self * rhs) + 0x4000) >> 15 on each lane, effectively multiplying by a 16 bit fixed point number between -1 and 1. This corresponds to the following instructions:
- vqrdmulhq_s16 instruction on neon
- i16x8_q15mulr_sat on simd128
- _mm_mulhrs_epi16 on ssse3
- emulated via mul_i16_* on sse2
sourcepub fn mul_scale_round_n(self, rhs: i16) -> Self
pub fn mul_scale_round_n(self, rhs: i16) -> Self
Multiply and scale equivilent to ((self * rhs) + 0x4000) >> 15 on each lane, effectively multiplying by a 16 bit fixed point number between -1 and 1. This corresponds to the following instructions:
- vqrdmulhq_n_s16 instruction on neon
- i16x8_q15mulr_sat on simd128
- _mm_mulhrs_epi16 on ssse3
- emulated via mul_i16_* on sse2
pub fn to_array(self) -> [i16; 8]
pub fn as_array_ref(&self) -> &[i16; 8]
Trait Implementations§
source§impl AddAssign<&i16x8> for i16x8
impl AddAssign<&i16x8> for i16x8
source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moresource§impl AddAssign<i16x8> for i16x8
impl AddAssign<i16x8> for i16x8
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresource§impl BitAndAssign<&i16x8> for i16x8
impl BitAndAssign<&i16x8> for i16x8
source§fn bitand_assign(&mut self, rhs: &Self)
fn bitand_assign(&mut self, rhs: &Self)
Performs the
&= operation. Read moresource§impl BitAndAssign<i16x8> for i16x8
impl BitAndAssign<i16x8> for i16x8
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moresource§impl BitOrAssign<&i16x8> for i16x8
impl BitOrAssign<&i16x8> for i16x8
source§fn bitor_assign(&mut self, rhs: &Self)
fn bitor_assign(&mut self, rhs: &Self)
Performs the
|= operation. Read moresource§impl BitOrAssign<i16x8> for i16x8
impl BitOrAssign<i16x8> for i16x8
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moresource§impl BitXorAssign<&i16x8> for i16x8
impl BitXorAssign<&i16x8> for i16x8
source§fn bitxor_assign(&mut self, rhs: &Self)
fn bitxor_assign(&mut self, rhs: &Self)
Performs the
^= operation. Read moresource§impl BitXorAssign<i16x8> for i16x8
impl BitXorAssign<i16x8> for i16x8
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moresource§impl MulAssign<&i16x8> for i16x8
impl MulAssign<&i16x8> for i16x8
source§fn mul_assign(&mut self, rhs: &Self)
fn mul_assign(&mut self, rhs: &Self)
Performs the
*= operation. Read moresource§impl MulAssign<i16x8> for i16x8
impl MulAssign<i16x8> for i16x8
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*= operation. Read moresource§impl PartialEq<i16x8> for i16x8
impl PartialEq<i16x8> for i16x8
source§impl SubAssign<&i16x8> for i16x8
impl SubAssign<&i16x8> for i16x8
source§fn sub_assign(&mut self, rhs: &Self)
fn sub_assign(&mut self, rhs: &Self)
Performs the
-= operation. Read moresource§impl SubAssign<i16x8> for i16x8
impl SubAssign<i16x8> for i16x8
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for i16x8
impl Eq for i16x8
impl Pod for i16x8
impl StructuralEq for i16x8
impl StructuralPartialEq for i16x8
Auto Trait Implementations§
impl RefUnwindSafe for i16x8
impl Send for i16x8
impl Sync for i16x8
impl Unpin for i16x8
impl UnwindSafe for i16x8
Blanket Implementations§
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere T: AnyBitPattern,
§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.