Struct simd::i8x16 [−][src]
#[repr(simd)]pub struct i8x16(_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _);
A SIMD vector of 16 i8
s.
Methods
impl i8x16
[src]
impl i8x16
pub const fn new(
x0: i8,
x1: i8,
x2: i8,
x3: i8,
x4: i8,
x5: i8,
x6: i8,
x7: i8,
x8: i8,
x9: i8,
x10: i8,
x11: i8,
x12: i8,
x13: i8,
x14: i8,
x15: i8
) -> i8x16
[src]
pub const fn new(
x0: i8,
x1: i8,
x2: i8,
x3: i8,
x4: i8,
x5: i8,
x6: i8,
x7: i8,
x8: i8,
x9: i8,
x10: i8,
x11: i8,
x12: i8,
x13: i8,
x14: i8,
x15: i8
) -> i8x16
Create a new instance.
pub const fn splat(x: i8) -> i8x16
[src]
pub const fn splat(x: i8) -> i8x16
Create a new instance where every lane has value x
.
pub fn eq(self, other: Self) -> bool8ix16
[src]
pub fn eq(self, other: Self) -> bool8ix16
Compare for equality.
pub fn ne(self, other: Self) -> bool8ix16
[src]
pub fn ne(self, other: Self) -> bool8ix16
Compare for equality.
pub fn lt(self, other: Self) -> bool8ix16
[src]
pub fn lt(self, other: Self) -> bool8ix16
Compare for equality.
pub fn le(self, other: Self) -> bool8ix16
[src]
pub fn le(self, other: Self) -> bool8ix16
Compare for equality.
pub fn gt(self, other: Self) -> bool8ix16
[src]
pub fn gt(self, other: Self) -> bool8ix16
Compare for equality.
pub fn ge(self, other: Self) -> bool8ix16
[src]
pub fn ge(self, other: Self) -> bool8ix16
Compare for equality.
pub fn extract(self, idx: u32) -> i8
[src]
pub fn extract(self, idx: u32) -> i8
pub fn replace(self, idx: u32, elem: i8) -> Self
[src]
pub fn replace(self, idx: u32, elem: i8) -> Self
Return a new vector where the idx
th lane is replaced
by elem
.
Panics
replace
will panic if idx
is out of bounds.
pub fn load(array: &[i8], idx: usize) -> Self
[src]
pub fn load(array: &[i8], 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.
pub fn store(self, array: &mut [i8], idx: usize)
[src]
pub fn store(self, array: &mut [i8], 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 i8x16
[src]
impl i8x16
Trait Implementations
impl Neg for i8x16
[src]
impl Neg for i8x16
type Output = Self
The resulting type after applying the -
operator.
fn neg(self) -> Self
[src]
fn neg(self) -> Self
Performs the unary -
operation.
impl Not for i8x16
[src]
impl Not for i8x16
type Output = Self
The resulting type after applying the !
operator.
fn not(self) -> Self
[src]
fn not(self) -> Self
Performs the unary !
operation.
impl Add for i8x16
[src]
impl Add for i8x16
type Output = Self
The resulting type after applying the +
operator.
fn add(self, x: Self) -> Self
[src]
fn add(self, x: Self) -> Self
Performs the +
operation.
impl Sub for i8x16
[src]
impl Sub for i8x16
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, x: Self) -> Self
[src]
fn sub(self, x: Self) -> Self
Performs the -
operation.
impl Mul for i8x16
[src]
impl Mul for i8x16
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, x: Self) -> Self
[src]
fn mul(self, x: Self) -> Self
Performs the *
operation.
impl BitAnd for i8x16
[src]
impl BitAnd for i8x16
type Output = Self
The resulting type after applying the &
operator.
fn bitand(self, x: Self) -> Self
[src]
fn bitand(self, x: Self) -> Self
Performs the &
operation.
impl BitOr for i8x16
[src]
impl BitOr for i8x16
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, x: Self) -> Self
[src]
fn bitor(self, x: Self) -> Self
Performs the |
operation.
impl BitXor for i8x16
[src]
impl BitXor for i8x16
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, x: Self) -> Self
[src]
fn bitxor(self, x: Self) -> Self
Performs the ^
operation.
impl Shl<u8> for i8x16
[src]
impl Shl<u8> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: u8) -> Self
[src]
fn shl(self, other: u8) -> Self
Performs the <<
operation.
impl Shr<u8> for i8x16
[src]
impl Shr<u8> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: u8) -> Self
[src]
fn shr(self, other: u8) -> Self
Performs the >>
operation.
impl Shl<u16> for i8x16
[src]
impl Shl<u16> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: u16) -> Self
[src]
fn shl(self, other: u16) -> Self
Performs the <<
operation.
impl Shr<u16> for i8x16
[src]
impl Shr<u16> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: u16) -> Self
[src]
fn shr(self, other: u16) -> Self
Performs the >>
operation.
impl Shl<u32> for i8x16
[src]
impl Shl<u32> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: u32) -> Self
[src]
fn shl(self, other: u32) -> Self
Performs the <<
operation.
impl Shr<u32> for i8x16
[src]
impl Shr<u32> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: u32) -> Self
[src]
fn shr(self, other: u32) -> Self
Performs the >>
operation.
impl Shl<u64> for i8x16
[src]
impl Shl<u64> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: u64) -> Self
[src]
fn shl(self, other: u64) -> Self
Performs the <<
operation.
impl Shr<u64> for i8x16
[src]
impl Shr<u64> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: u64) -> Self
[src]
fn shr(self, other: u64) -> Self
Performs the >>
operation.
impl Shl<usize> for i8x16
[src]
impl Shl<usize> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: usize) -> Self
[src]
fn shl(self, other: usize) -> Self
Performs the <<
operation.
impl Shr<usize> for i8x16
[src]
impl Shr<usize> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: usize) -> Self
[src]
fn shr(self, other: usize) -> Self
Performs the >>
operation.
impl Shl<i8> for i8x16
[src]
impl Shl<i8> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: i8) -> Self
[src]
fn shl(self, other: i8) -> Self
Performs the <<
operation.
impl Shr<i8> for i8x16
[src]
impl Shr<i8> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: i8) -> Self
[src]
fn shr(self, other: i8) -> Self
Performs the >>
operation.
impl Shl<i16> for i8x16
[src]
impl Shl<i16> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: i16) -> Self
[src]
fn shl(self, other: i16) -> Self
Performs the <<
operation.
impl Shr<i16> for i8x16
[src]
impl Shr<i16> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: i16) -> Self
[src]
fn shr(self, other: i16) -> Self
Performs the >>
operation.
impl Shl<i32> for i8x16
[src]
impl Shl<i32> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: i32) -> Self
[src]
fn shl(self, other: i32) -> Self
Performs the <<
operation.
impl Shr<i32> for i8x16
[src]
impl Shr<i32> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: i32) -> Self
[src]
fn shr(self, other: i32) -> Self
Performs the >>
operation.
impl Shl<i64> for i8x16
[src]
impl Shl<i64> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: i64) -> Self
[src]
fn shl(self, other: i64) -> Self
Performs the <<
operation.
impl Shr<i64> for i8x16
[src]
impl Shr<i64> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: i64) -> Self
[src]
fn shr(self, other: i64) -> Self
Performs the >>
operation.
impl Shl<isize> for i8x16
[src]
impl Shl<isize> for i8x16
type Output = Self
The resulting type after applying the <<
operator.
fn shl(self, other: isize) -> Self
[src]
fn shl(self, other: isize) -> Self
Performs the <<
operation.
impl Shr<isize> for i8x16
[src]
impl Shr<isize> for i8x16
type Output = Self
The resulting type after applying the >>
operator.
fn shr(self, other: isize) -> Self
[src]
fn shr(self, other: isize) -> Self
Performs the >>
operation.
impl Sse2I8x16 for i8x16
[src]
impl Sse2I8x16 for i8x16
fn move_mask(self) -> u32
[src]
fn move_mask(self) -> u32
fn adds(self, other: Self) -> Self
[src]
fn adds(self, other: Self) -> Self
fn subs(self, other: Self) -> Self
[src]
fn subs(self, other: Self) -> Self
impl Ssse3I8x16 for i8x16
[src]
impl Ssse3I8x16 for i8x16
fn abs(self) -> Self
[src]
fn abs(self) -> Self
fn shuffle_bytes(self, indices: Self) -> Self
[src]
fn shuffle_bytes(self, indices: Self) -> Self
fn sign(self, other: Self) -> Self
[src]
fn sign(self, other: Self) -> Self
impl Sse41I8x16 for i8x16
[src]
impl Sse41I8x16 for i8x16
impl AvxI8x16 for i8x16
[src]
impl AvxI8x16 for i8x16
impl Aarch64I8x16 for i8x16
[src]
impl Aarch64I8x16 for i8x16
fn table_lookup_1(self, t0: i8x16) -> i8x16
[src]
fn table_lookup_1(self, t0: i8x16) -> i8x16
impl Debug for i8x16
[src]
impl Debug for i8x16
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for i8x16
[src]
impl Copy for i8x16
impl Simd for i8x16
[src]
impl Simd for i8x16
type Bool = bool8ix16
The corresponding boolean vector type.
type Elem = i8
The element that this vector stores.
impl Clone for i8x16
[src]
impl Clone for i8x16