Struct simd::u16x8
[−]
[src]
#[repr(simd)]pub struct u16x8(_, _, _, _, _, _, _, _);
A SIMD vector of 8 u16
s.
Methods
impl u16x8
[src]
const fn new(
x0: u16,
x1: u16,
x2: u16,
x3: u16,
x4: u16,
x5: u16,
x6: u16,
x7: u16
) -> u16x8
x0: u16,
x1: u16,
x2: u16,
x3: u16,
x4: u16,
x5: u16,
x6: u16,
x7: u16
) -> u16x8
Create a new instance.
const fn splat(x: u16) -> u16x8
Create a new instance where every lane has value x
.
fn eq(self, other: Self) -> bool16ix8
Compare for equality.
fn ne(self, other: Self) -> bool16ix8
Compare for equality.
fn lt(self, other: Self) -> bool16ix8
Compare for equality.
fn le(self, other: Self) -> bool16ix8
Compare for equality.
fn gt(self, other: Self) -> bool16ix8
Compare for equality.
fn ge(self, other: Self) -> bool16ix8
Compare for equality.
fn extract(self, idx: u32) -> u16
fn replace(self, idx: u32, elem: u16) -> Self
Return a new vector where the idx
th lane is replaced
by elem
.
Panics
replace
will panic if idx
is out of bounds.
fn load(array: &[u16], idx: usize) -> Self
Load a new value from the idx
th position of array
.
This is equivalent to the following, but is possibly more efficient:
Self::new(array[idx], array[idx + 1], ...)
Panics
load
will panic if idx
is out of bounds in
array
, or if array[idx..]
is too short.
fn store(self, array: &mut [u16], idx: usize)
Store the elements of self
to array
, starting at
the idx
th position.
This is equivalent to the following, but is possibly more efficient:
array[i] = self.extract(0); array[i + 1] = self.extract(1); // ...
Panics
store
will panic if idx
is out of bounds in
array
, or if array[idx...]
is too short.
impl u16x8
[src]
Trait Implementations
impl Not for u16x8
[src]
type Output = Self
The resulting type after applying the !
operator
fn not(self) -> Self
The method for the unary !
operator
impl Add for u16x8
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, x: Self) -> Self
The method for the +
operator
impl Sub for u16x8
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, x: Self) -> Self
The method for the -
operator
impl Mul for u16x8
[src]
type Output = Self
The resulting type after applying the *
operator
fn mul(self, x: Self) -> Self
The method for the *
operator
impl BitAnd for u16x8
[src]
type Output = Self
The resulting type after applying the &
operator
fn bitand(self, x: Self) -> Self
The method for the &
operator
impl BitOr for u16x8
[src]
type Output = Self
The resulting type after applying the |
operator
fn bitor(self, x: Self) -> Self
The method for the |
operator
impl BitXor for u16x8
[src]
type Output = Self
The resulting type after applying the ^
operator
fn bitxor(self, x: Self) -> Self
The method for the ^
operator
impl Shl<u8> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: u8) -> Self
The method for the <<
operator
impl Shr<u8> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: u8) -> Self
The method for the >>
operator
impl Shl<u16> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: u16) -> Self
The method for the <<
operator
impl Shr<u16> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: u16) -> Self
The method for the >>
operator
impl Shl<u32> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: u32) -> Self
The method for the <<
operator
impl Shr<u32> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: u32) -> Self
The method for the >>
operator
impl Shl<u64> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: u64) -> Self
The method for the <<
operator
impl Shr<u64> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: u64) -> Self
The method for the >>
operator
impl Shl<usize> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: usize) -> Self
The method for the <<
operator
impl Shr<usize> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: usize) -> Self
The method for the >>
operator
impl Shl<i8> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i8) -> Self
The method for the <<
operator
impl Shr<i8> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i8) -> Self
The method for the >>
operator
impl Shl<i16> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i16) -> Self
The method for the <<
operator
impl Shr<i16> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i16) -> Self
The method for the >>
operator
impl Shl<i32> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i32) -> Self
The method for the <<
operator
impl Shr<i32> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i32) -> Self
The method for the >>
operator
impl Shl<i64> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: i64) -> Self
The method for the <<
operator
impl Shr<i64> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: i64) -> Self
The method for the >>
operator
impl Shl<isize> for u16x8
[src]
type Output = Self
The resulting type after applying the <<
operator
fn shl(self, other: isize) -> Self
The method for the <<
operator
impl Shr<isize> for u16x8
[src]
type Output = Self
The resulting type after applying the >>
operator
fn shr(self, other: isize) -> Self
The method for the >>
operator
impl Sse2U16x8 for u16x8
[src]
fn adds(self, other: Self) -> Self
fn subs(self, other: Self) -> Self
fn avg(self, other: Self) -> Self
fn mulhi(self, other: Self) -> Self
impl Debug for u16x8
[src]
impl Copy for u16x8
[src]
impl Simd for u16x8
[src]
type Bool = bool16ix8
The corresponding boolean vector type.
type Elem = u16
The element that this vector stores.
impl Clone for u16x8
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more