[][src]Struct simulated_packed_simd::i32x4

#[repr(packed)]pub struct i32x4(_, _, _, _);

Methods

impl i32x4[src]

pub fn new(x0: i32, x1: i32, x2: i32, x3: i32) -> Self[src]

Create new instance

pub fn splat(x: i32) -> Self[src]

Create new instance with all lanes set to a value

pub fn extract(self, idx: usize) -> i32[src]

Get the idxth lane value

pub fn replace(self, idx: usize, elem: i32) -> Self[src]

Replace the idxth lane with new value

pub fn load(array: &[i32], idx: usize) -> Self[src]

Load instance from an array

pub fn from_slice_aligned(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn from_slice_unaligned(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_aligned_unchecked(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub unsafe fn from_slice_unaligned_unchecked(slice: &[i32]) -> Self[src]

Instantiates a new vector with the values of the slice.

pub fn store(self, array: &mut [i32], idx: usize)[src]

Store self to an array

pub fn write_to_slice_aligned(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub fn write_to_slice_unaligned(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_aligned_unchecked(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub unsafe fn write_to_slice_unaligned_unchecked(self, slice: &mut [i32])[src]

Writes the values of the vector to the slice.

pub fn eq(self, rhs: Self) -> bool32x4[src]

Compare if equal

pub fn ne(self, rhs: Self) -> bool32x4[src]

Compare if not equal

pub fn lt(self, rhs: Self) -> bool32x4[src]

Compare if less than

pub fn le(self, rhs: Self) -> bool32x4[src]

Compare if less than or equal

pub fn gt(self, rhs: Self) -> bool32x4[src]

Compare if greater than

pub fn ge(self, rhs: Self) -> bool32x4[src]

Compare if greater than or equal

pub fn max(self, rhs: Self) -> Self[src]

Get max values by lane

pub fn min(self, rhs: Self) -> Self[src]

Get min values by lane

impl i32x4[src]

pub 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 i32x4[src]

pub fn to_u(self) -> u32x4[src]

impl i32x4[src]

pub fn to_f(self) -> f32x4[src]

impl i32x4[src]

pub fn to_i64(self) -> i64x4[src]

impl i32x4[src]

pub fn to_u8(self) -> u8x4[src]

Trait Implementations

impl Add<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the + operator.

impl BitAnd<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the ^ operator.

impl Clone for i32x4[src]

impl Copy for i32x4[src]

impl Debug for i32x4[src]

impl Div<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the / operator.

impl From<bool32x4> for i32x4[src]

fn from(source: bool32x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl From<f32x4> for i32x4[src]

fn from(source: f32x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl From<i16x4> for i32x4[src]

fn from(source: i16x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl From<i32x4> for u32x4[src]

fn from(source: i32x4) -> u32x4[src]

Warning ! The conversion can be lossy

impl From<i32x4> for f32x4[src]

fn from(source: i32x4) -> f32x4[src]

Warning ! The conversion can be lossy

impl From<i32x4> for i64x4[src]

fn from(source: i32x4) -> i64x4[src]

Warning ! The conversion can be lossy

impl From<i32x4> for u8x4[src]

fn from(source: i32x4) -> u8x4[src]

Warning ! The conversion can be lossy

impl From<i64x4> for i32x4[src]

fn from(source: i64x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl From<u16x4> for i32x4[src]

fn from(source: u16x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl From<u32x4> for i32x4[src]

fn from(source: u32x4) -> i32x4[src]

Warning ! The conversion can be lossy

impl FromCast<bool32x4> for i32x4[src]

impl FromCast<f32x4> for i32x4[src]

impl FromCast<i16x4> for i32x4[src]

impl FromCast<i32x4> for u32x4[src]

impl FromCast<i32x4> for f32x4[src]

impl FromCast<i32x4> for i64x4[src]

impl FromCast<i32x4> for u8x4[src]

impl FromCast<i64x4> for i32x4[src]

impl FromCast<u16x4> for i32x4[src]

impl FromCast<u32x4> for i32x4[src]

impl Mul<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the * operator.

impl Not for i32x4[src]

type Output = Self

The resulting type after applying the ! operator.

impl Shl<u32> for i32x4[src]

type Output = Self

The resulting type after applying the << operator.

impl Shr<u32> for i32x4[src]

type Output = Self

The resulting type after applying the >> operator.

impl Sub<i32x4> for i32x4[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for i32x4

impl Send for i32x4

impl Sync for i32x4

impl Unpin for i32x4

impl UnwindSafe for i32x4

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.