[][src]Struct simd::u16x8

#[repr(simd)]
pub struct u16x8(_, _, _, _, _, _, _, _);

A SIMD vector of 8 u16s.

Methods

impl u16x8
[src]

pub const fn new(
    x0: u16,
    x1: u16,
    x2: u16,
    x3: u16,
    x4: u16,
    x5: u16,
    x6: u16,
    x7: u16
) -> u16x8
[src]

Create a new instance.

pub const fn splat(x: u16) -> u16x8
[src]

Create a new instance where every lane has value x.

pub fn eq(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn ne(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn lt(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn le(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn gt(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn ge(self, other: Self) -> bool16ix8
[src]

Compare for equality.

pub fn extract(self, idx: u32) -> u16
[src]

Extract the value of the idxth lane of self.

Panics

extract will panic if idx is out of bounds.

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

Return a new vector where the idxth lane is replaced by elem.

Panics

replace will panic if idx is out of bounds.

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

Load a new value from the idxth position of array.

This is equivalent to the following, but is possibly more efficient:

This example is not tested
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 [u16], idx: usize)
[src]

Store the elements of self to array, starting at the idxth position.

This is equivalent to the following, but is possibly more efficient:

This example is not tested
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 u16x8
[src]

pub fn to_i16(self) -> i16x8
[src]

Convert each lane to a signed integer.

Trait Implementations

impl Simd for u16x8
[src]

type Bool = bool16ix8

The corresponding boolean vector type.

type Elem = u16

The element that this vector stores.

impl Sse2U16x8 for u16x8
[src]

impl Ssse3U16x8 for u16x8
[src]

impl Sse41U16x8 for u16x8
[src]

impl AvxU16x8 for u16x8
[src]

impl Copy for u16x8
[src]

impl Debug for u16x8
[src]

impl Sub<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the * operator.

impl Not for u16x8
[src]

type Output = Self

The resulting type after applying the ! operator.

impl BitAnd<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<u16x8> for u16x8
[src]

type Output = Self

The resulting type after applying the ^ operator.

impl Shl<u8> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<u16> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<u32> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<u64> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<usize> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<i8> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<i16> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<i32> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<i64> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shl<isize> for u16x8
[src]

type Output = Self

The resulting type after applying the << operator.

impl Shr<u8> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<u16> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<u32> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<u64> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<usize> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<i8> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<i16> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<i32> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<i64> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Shr<isize> for u16x8
[src]

type Output = Self

The resulting type after applying the >> operator.

impl Clone for u16x8
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for u16x8

impl Sync for u16x8

Blanket Implementations

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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