i16x16

Struct i16x16 

Source
pub struct i16x16(/* private fields */);

Implementations§

Source§

impl i16x16

Source

pub fn new( x0: i16, x1: i16, x2: i16, x3: i16, x4: i16, x5: i16, x6: i16, x7: i16, x8: i16, x9: i16, x10: i16, x11: i16, x12: i16, x13: i16, x14: i16, x15: i16, ) -> Self

Create new instance

Source

pub fn splat(x: i16) -> Self

Create new instance with all lanes set to a value

Source

pub fn extract(self, idx: u32) -> i16

Get the idxth lane value

Source

pub fn replace(self, idx: u32, elem: i16) -> Self

Replace the idxth lane with new value

Source

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

Load instance from an array

Source

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

Store self to an array

Source

pub fn eq(self, rhs: Self) -> bool16x16

Compare if equal

Source

pub fn ne(self, rhs: Self) -> bool16x16

Compare if not equal

Source

pub fn lt(self, rhs: Self) -> bool16x16

Compare if less than

Source

pub fn le(self, rhs: Self) -> bool16x16

Compare if less than or equal

Source

pub fn gt(self, rhs: Self) -> bool16x16

Compare if greater than

Source

pub fn ge(self, rhs: Self) -> bool16x16

Compare if greater than or equal

Source

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

Get max values by lane

Source

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

Get min values by lane

Source§

impl i16x16

Source

pub fn select(&self, then: Self, else_: Self) -> Self

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§

Source§

impl Add for i16x16

Source§

type Output = i16x16

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl BitAnd for i16x16

Source§

type Output = i16x16

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl BitOr for i16x16

Source§

type Output = i16x16

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitXor for i16x16

Source§

type Output = i16x16

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl Clone for i16x16

Source§

fn clone(&self) -> i16x16

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for i16x16

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div for i16x16

Source§

type Output = i16x16

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
Source§

impl Mul for i16x16

Source§

type Output = i16x16

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
Source§

impl Not for i16x16

Source§

type Output = i16x16

The resulting type after applying the ! operator.
Source§

fn not(self) -> Self

Performs the unary ! operation. Read more
Source§

impl Shl<usize> for i16x16

Source§

type Output = i16x16

The resulting type after applying the << operator.
Source§

fn shl(self, sz: usize) -> Self

Performs the << operation. Read more
Source§

impl Shr<usize> for i16x16

Source§

type Output = i16x16

The resulting type after applying the >> operator.
Source§

fn shr(self, sz: usize) -> Self

Performs the >> operation. Read more
Source§

impl Sub for i16x16

Source§

type Output = i16x16

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl Copy for i16x16

Auto Trait Implementations§

§

impl Freeze for i16x16

§

impl RefUnwindSafe for i16x16

§

impl Send for i16x16

§

impl Sync for i16x16

§

impl Unpin for i16x16

§

impl UnwindSafe for i16x16

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.