Struct ssimd::u8x32
[−]
[src]
#[repr(packed)]pub struct u8x32(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
32x8-bit integer vector
Methods
impl u8x32
[src]
fn new(
x0: u8,
x1: u8,
x2: u8,
x3: u8,
x4: u8,
x5: u8,
x6: u8,
x7: u8,
x8: u8,
x9: u8,
x10: u8,
x11: u8,
x12: u8,
x13: u8,
x14: u8,
x15: u8,
x16: u8,
x17: u8,
x18: u8,
x19: u8,
x20: u8,
x21: u8,
x22: u8,
x23: u8,
x24: u8,
x25: u8,
x26: u8,
x27: u8,
x28: u8,
x29: u8,
x30: u8,
x31: u8
) -> Self
[src]
x0: u8,
x1: u8,
x2: u8,
x3: u8,
x4: u8,
x5: u8,
x6: u8,
x7: u8,
x8: u8,
x9: u8,
x10: u8,
x11: u8,
x12: u8,
x13: u8,
x14: u8,
x15: u8,
x16: u8,
x17: u8,
x18: u8,
x19: u8,
x20: u8,
x21: u8,
x22: u8,
x23: u8,
x24: u8,
x25: u8,
x26: u8,
x27: u8,
x28: u8,
x29: u8,
x30: u8,
x31: u8
) -> Self
Create new instance
fn splat(x: u8) -> Self
[src]
Create new instance with all lanes set to a value
fn extract(self, idx: u32) -> u8
[src]
Get the idx
th lane value
fn replace(self, idx: u32, elem: u8) -> Self
[src]
Replace the idx
th lane with new value
fn load(array: &[u8], idx: usize) -> Self
[src]
Load instance from an array
fn store(self, array: &mut [u8], idx: usize)
[src]
Store self to an array
fn eq(self, rhs: Self) -> bool8x32
[src]
Compare if equal
fn ne(self, rhs: Self) -> bool8x32
[src]
Compare if not equal
fn lt(self, rhs: Self) -> bool8x32
[src]
Compare if less than
fn le(self, rhs: Self) -> bool8x32
[src]
Compare if less than or equal
fn gt(self, rhs: Self) -> bool8x32
[src]
Compare if greater than
fn ge(self, rhs: Self) -> bool8x32
[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 u8x32
[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 u8x32
[src]
impl Clone for u8x32
[src]
fn clone(&self) -> u8x32
[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 u8x32
[src]
impl Add for u8x32
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl Sub for u8x32
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl Mul for u8x32
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
Performs the *
operation.
impl Div for u8x32
[src]
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
Performs the /
operation.
impl BitAnd for u8x32
[src]
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, rhs: Self) -> Self
[src]
Performs the &
operation.
impl BitOr for u8x32
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Self) -> Self
[src]
Performs the |
operation.
impl BitXor for u8x32
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Self) -> Self
[src]
Performs the ^
operation.
impl Not for u8x32
[src]
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self
[src]
Performs the unary !
operation.
impl Shl<usize> for u8x32
[src]
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, sz: usize) -> Self
[src]
Performs the <<
operation.