Struct ssimd::i32x2
[−]
[src]
#[repr(packed)]pub struct i32x2(_, _);
Methods
impl i32x2
[src]
fn new(x0: i32, x1: i32) -> Self
[src]
Create new instance
fn splat(x: i32) -> Self
[src]
Create new instance with all lanes set to a value
fn extract(self, idx: u32) -> i32
[src]
Get the idx
th lane value
fn replace(self, idx: u32, elem: i32) -> Self
[src]
Replace the idx
th lane with new value
fn load(array: &[i32], idx: usize) -> Self
[src]
Load instance from an array
fn store(self, array: &mut [i32], idx: usize)
[src]
Store self to an array
fn eq(self, rhs: Self) -> bool32x2
[src]
Compare if equal
fn ne(self, rhs: Self) -> bool32x2
[src]
Compare if not equal
fn lt(self, rhs: Self) -> bool32x2
[src]
Compare if less than
fn le(self, rhs: Self) -> bool32x2
[src]
Compare if less than or equal
fn gt(self, rhs: Self) -> bool32x2
[src]
Compare if greater than
fn ge(self, rhs: Self) -> bool32x2
[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 i32x2
[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 },
...)
impl i32x2
[src]
impl i32x2
[src]
impl i32x2
[src]
Trait Implementations
impl Debug for i32x2
[src]
impl Clone for i32x2
[src]
fn clone(&self) -> i32x2
[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 i32x2
[src]
impl Add for i32x2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl Sub for i32x2
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl Mul for i32x2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
Performs the *
operation.
impl Div for i32x2
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
Performs the /
operation.
impl BitAnd for i32x2
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
Performs the &
operation.
impl BitOr for i32x2
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
Performs the |
operation.
impl BitXor for i32x2
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
Performs the ^
operation.
impl Not for i32x2
[src]
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self
[src]
Performs the unary !
operation.
impl Shl<usize> for i32x2
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, sz: usize) -> Self
[src]
Performs the <<
operation.