Struct ssimd::i16x16
[−]
[src]
#[repr(packed)]pub struct i16x16(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
Methods
impl i16x16
[src]
fn new(
x0: i16,
x1: i16,
x2: i16,
x3: i16,
x4: i16,
x5: i16,
x6: i16,
x7: i16,
x8: i16,
x9: i16,
x10: i16,
x11: i16,
x12: i16,
x13: i16,
x14: i16,
x15: i16
) -> Self
[src]
x0: i16,
x1: i16,
x2: i16,
x3: i16,
x4: i16,
x5: i16,
x6: i16,
x7: i16,
x8: i16,
x9: i16,
x10: i16,
x11: i16,
x12: i16,
x13: i16,
x14: i16,
x15: i16
) -> Self
Create new instance
fn splat(x: i16) -> Self
[src]
Create new instance with all lanes set to a value
fn extract(self, idx: u32) -> i16
[src]
Get the idx
th lane value
fn replace(self, idx: u32, elem: i16) -> Self
[src]
Replace the idx
th lane with new value
fn load(array: &[i16], idx: usize) -> Self
[src]
Load instance from an array
fn store(self, array: &mut [i16], idx: usize)
[src]
Store self to an array
fn eq(self, rhs: Self) -> bool16x16
[src]
Compare if equal
fn ne(self, rhs: Self) -> bool16x16
[src]
Compare if not equal
fn lt(self, rhs: Self) -> bool16x16
[src]
Compare if less than
fn le(self, rhs: Self) -> bool16x16
[src]
Compare if less than or equal
fn gt(self, rhs: Self) -> bool16x16
[src]
Compare if greater than
fn ge(self, rhs: Self) -> bool16x16
[src]
Compare if greater than or equal
fn max(self, rhs: Self) -> Self
[src]
Get max values by lane
fn min(self, rhs: Self) -> Self
[src]
Get min values by lane
impl i16x16
[src]
fn select(&self, then: Self, else_: Self) -> Self
[src]
Select between elements of then
and else_
, based on
the corresponding element of self
.
Equivalent to:
T::new(if self.0 { then.0 } else { else_.0 },
if self.1 { then.1 } else { else_.1 },
...)
Trait Implementations
impl Debug for i16x16
[src]
impl Clone for i16x16
[src]
fn clone(&self) -> i16x16
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for i16x16
[src]
impl Add for i16x16
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl Sub for i16x16
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl Mul for i16x16
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
Performs the *
operation.
impl Div for i16x16
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
Performs the /
operation.
impl BitAnd for i16x16
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
Performs the &
operation.
impl BitOr for i16x16
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
Performs the |
operation.
impl BitXor for i16x16
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
Performs the ^
operation.
impl Not for i16x16
[src]
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self
[src]
Performs the unary !
operation.
impl Shl<usize> for i16x16
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, sz: usize) -> Self
[src]
Performs the <<
operation.