Struct wide::i16x16

source ·
#[repr(C, align(32))]
pub struct i16x16 { /* private fields */ }

Implementations§

The number of lanes in this SIMD vector.

The size of this SIMD vector in bits.

widens and sign extends to i16x16

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
  • _mm256_mulhrs_epi16 on avx2
  • emulated via mul_i16_* on sse2

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
  • _mm256_mulhrs_epi16 on avx2
  • emulated via mul_i16_* on sse2

Trait Implementations§

The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
The resulting type after applying the + operator.
Performs the + operation. Read more
Performs the += operation. Read more
Performs the += operation. Read more
Formats the value using the given formatter.
The resulting type after applying the & operator.
Performs the & operation. Read more
The resulting type after applying the & operator.
Performs the & operation. Read more
Performs the &= operation. Read more
Performs the &= operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
The resulting type after applying the | operator.
Performs the | operation. Read more
Performs the |= operation. Read more
Performs the |= operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
Performs the ^= operation. Read more
Performs the ^= operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Splats the single value given across all lanes.

Converts to this type from the input type.
Formats the value using the given formatter.
Formats the value using the given formatter.
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
Performs the *= operation. Read more
Performs the *= operation. Read more
The resulting type after applying the - operator.
Performs the unary - operation. Read more
The resulting type after applying the - operator.
Performs the unary - operation. Read more
The resulting type after applying the ! operator.
Performs the unary ! operation. Read more
The resulting type after applying the ! operator.
Performs the unary ! operation. Read more
Formats the value using the given formatter.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the << operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.

Shifts all lanes by the value given.

The resulting type after applying the >> operator.
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
The resulting type after applying the - operator.
Performs the - operation. Read more
Performs the -= operation. Read more
Performs the -= operation. Read more
Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more
Formats the value using the given formatter.
Formats the value using the given formatter.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern. Read more
If this function returns true, then it must be valid to reinterpret bits as &Self. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.