Struct simd::x86::avx::i64x4
[−]
[src]
pub struct i64x4(_, _, _, _);
Methods
impl i64x4[src]
const fn new(x0: i64, x1: i64, x2: i64, x3: i64) -> i64x4
Create a new instance.
const fn splat(x: i64) -> i64x4
Create a new instance where every lane has value x.
fn eq(self, other: Self) -> bool64ix4
Compare for equality.
fn ne(self, other: Self) -> bool64ix4
Compare for equality.
fn lt(self, other: Self) -> bool64ix4
Compare for equality.
fn le(self, other: Self) -> bool64ix4
Compare for equality.
fn gt(self, other: Self) -> bool64ix4
Compare for equality.
fn ge(self, other: Self) -> bool64ix4
Compare for equality.
fn extract(self, idx: u32) -> i64
fn replace(self, idx: u32, elem: i64) -> Self
Return a new vector where the idxth lane is replaced
by elem.
Panics
replace will panic if idx is out of bounds.
fn load(array: &[i64], idx: usize) -> Self
Load a new value from the idxth 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.
fn store(self, array: &mut [i64], idx: usize)
Store the elements of self to array, starting at
the idxth 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 i64x4[src]
fn to_u64(self) -> u64x4
Convert each lane to an unsigned integer.
fn to_f64(self) -> f64x4
Convert each lane to a 64-bit float.
Trait Implementations
impl Simd for i64x4[src]
type Bool = bool64ix4
The corresponding boolean vector type.
type Elem = i64
The element that this vector stores.
impl Clone for i64x4[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl LowHigh128 for i64x4[src]
type Half = i64x2
fn low(self) -> Self::Half
Extract the low 128 bit part.
fn high(self) -> Self::Half
Extract the high 128 bit part.
impl Add for i64x4[src]
type Output = Self
The resulting type after applying the + operator
fn add(self, x: Self) -> Self
The method for the + operator
impl Sub for i64x4[src]
type Output = Self
The resulting type after applying the - operator
fn sub(self, x: Self) -> Self
The method for the - operator
impl Mul for i64x4[src]
type Output = Self
The resulting type after applying the * operator
fn mul(self, x: Self) -> Self
The method for the * operator
impl BitAnd for i64x4[src]
type Output = Self
The resulting type after applying the & operator
fn bitand(self, x: Self) -> Self
The method for the & operator
impl BitOr for i64x4[src]
type Output = Self
The resulting type after applying the | operator
fn bitor(self, x: Self) -> Self
The method for the | operator
impl BitXor for i64x4[src]
type Output = Self
The resulting type after applying the ^ operator
fn bitxor(self, x: Self) -> Self
The method for the ^ operator
impl Neg for i64x4[src]
type Output = Self
The resulting type after applying the - operator
fn neg(self) -> Self
The method for the unary - operator
impl Not for i64x4[src]
type Output = Self
The resulting type after applying the ! operator
fn not(self) -> Self
The method for the unary ! operator
impl Shl<u8> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: u8) -> Self
The method for the << operator
impl Shr<u8> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: u8) -> Self
The method for the >> operator
impl Shl<u16> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: u16) -> Self
The method for the << operator
impl Shr<u16> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: u16) -> Self
The method for the >> operator
impl Shl<u32> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: u32) -> Self
The method for the << operator
impl Shr<u32> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: u32) -> Self
The method for the >> operator
impl Shl<u64> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: u64) -> Self
The method for the << operator
impl Shr<u64> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: u64) -> Self
The method for the >> operator
impl Shl<usize> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: usize) -> Self
The method for the << operator
impl Shr<usize> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: usize) -> Self
The method for the >> operator
impl Shl<i8> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: i8) -> Self
The method for the << operator
impl Shr<i8> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: i8) -> Self
The method for the >> operator
impl Shl<i16> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: i16) -> Self
The method for the << operator
impl Shr<i16> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: i16) -> Self
The method for the >> operator
impl Shl<i32> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: i32) -> Self
The method for the << operator
impl Shr<i32> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: i32) -> Self
The method for the >> operator
impl Shl<i64> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: i64) -> Self
The method for the << operator
impl Shr<i64> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: i64) -> Self
The method for the >> operator
impl Shl<isize> for i64x4[src]
type Output = Self
The resulting type after applying the << operator
fn shl(self, other: isize) -> Self
The method for the << operator
impl Shr<isize> for i64x4[src]
type Output = Self
The resulting type after applying the >> operator
fn shr(self, other: isize) -> Self
The method for the >> operator