Struct ssimd::u32x2
[−]
[src]
#[repr(packed)]pub struct u32x2(_, _);
2x32-bit vectors
Methods
impl u32x2
[src]
fn new(x0: u32, x1: u32) -> Self
[src]
Create new instance
fn splat(x: u32) -> Self
[src]
Create new instance with all lanes set to a value
fn extract(self, idx: u32) -> u32
[src]
Get the idx
th lane value
fn replace(self, idx: u32, elem: u32) -> Self
[src]
Replace the idx
th lane with new value
fn load(array: &[u32], idx: usize) -> Self
[src]
Load instance from an array
fn store(self, array: &mut [u32], 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 u32x2
[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 u32x2
[src]
impl u32x2
[src]
impl u32x2
[src]
Trait Implementations
impl Debug for u32x2
[src]
impl Clone for u32x2
[src]
fn clone(&self) -> u32x2
[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 u32x2
[src]
impl Add for u32x2
[src]
Add trait (+)
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl Sub for u32x2
[src]
Sub trait (-)
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl Mul for u32x2
[src]
Mul trait (*)
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
Performs the *
operation.
impl Div for u32x2
[src]
Div trait (/)
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
Performs the /
operation.
impl BitAnd for u32x2
[src]
BitAnd trait (&)
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
Performs the &
operation.
impl BitOr for u32x2
[src]
BitOr trait (|)
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
Performs the |
operation.
impl BitXor for u32x2
[src]
BitXor trait ()
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
Performs the ^
operation.
impl Not for u32x2
[src]
Not trait (!)
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self
[src]
Performs the unary !
operation.
impl Shl<usize> for u32x2
[src]
Shift left trait (<<)
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, sz: usize) -> Self
[src]
Performs the <<
operation.
impl Shr<usize> for u32x2
[src]
Shift right trait (>>)