simba::simd

Type Alias AutoU16x4

Source
pub type AutoU16x4 = AutoSimd<[u16; 4]>;

Aliased Type§

struct AutoU16x4(pub [u16; 4]);

Fields§

§0: [u16; 4]

Implementations

Source§

impl AutoSimd<[u16; 4]>

Source

pub fn new(_0: u16, _1: u16, _2: u16, _3: u16) -> Self

Trait Implementations

Source§

impl Add for AutoSimd<[u16; 4]>

Source§

type Output = AutoSimd<[u16; 4]>

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AddAssign for AutoSimd<[u16; 4]>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<N: Clone> Clone for AutoSimd<N>

Source§

fn clone(&self) -> AutoSimd<N>

Returns a copy 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<N: Debug> Debug for AutoSimd<N>

Source§

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

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

impl Display for AutoSimd<[u16; 4]>

Source§

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

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

impl Div for AutoSimd<[u16; 4]>

Source§

type Output = AutoSimd<[u16; 4]>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign for AutoSimd<[u16; 4]>

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl From<[u16; 4]> for AutoSimd<[u16; 4]>

Source§

fn from(vals: [u16; 4]) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for AutoSimd<[u16; 4]>

Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl Mul for AutoSimd<[u16; 4]>

Source§

type Output = AutoSimd<[u16; 4]>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign for AutoSimd<[u16; 4]>

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Num for AutoSimd<[u16; 4]>

Source§

type FromStrRadixErr = <u16 as Num>::FromStrRadixErr

Source§

fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl One for AutoSimd<[u16; 4]>

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl<N: PartialEq> PartialEq for AutoSimd<N>

Source§

fn eq(&self, other: &AutoSimd<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Rem for AutoSimd<[u16; 4]>

Source§

type Output = AutoSimd<[u16; 4]>

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl RemAssign for AutoSimd<[u16; 4]>

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl SimdPartialOrd for AutoSimd<[u16; 4]>

Source§

fn simd_gt(self, other: Self) -> Self::SimdBool

Lanewise greater than > comparison.
Source§

fn simd_lt(self, other: Self) -> Self::SimdBool

Lanewise less than < comparison.
Source§

fn simd_ge(self, other: Self) -> Self::SimdBool

Lanewise greater or equal >= comparison.
Source§

fn simd_le(self, other: Self) -> Self::SimdBool

Lanewise less or equal <= comparison.
Source§

fn simd_eq(self, other: Self) -> Self::SimdBool

Lanewise equal == comparison.
Source§

fn simd_ne(self, other: Self) -> Self::SimdBool

Lanewise not equal != comparison.
Source§

fn simd_max(self, other: Self) -> Self

Lanewise max value.
Source§

fn simd_min(self, other: Self) -> Self

Lanewise min value.
Source§

fn simd_clamp(self, min: Self, max: Self) -> Self

Clamps each lane of self between the corresponding lane of min and max.
Source§

fn simd_horizontal_min(self) -> Self::Element

The min value among all lanes of self.
Source§

fn simd_horizontal_max(self) -> Self::Element

The max value among all lanes of self.
Source§

impl SimdValue for AutoSimd<[u16; 4]>

Source§

type Element = u16

The type of the elements of each lane of this SIMD value.
Source§

type SimdBool = AutoSimd<[bool; 4]>

Type of the result of comparing two SIMD values like self.
Source§

fn lanes() -> usize

The number of lanes of this SIMD value.
Source§

fn splat(val: Self::Element) -> Self

Initializes an SIMD value with each lanes set to val.
Source§

fn extract(&self, i: usize) -> Self::Element

Extracts the i-th lane of self. Read more
Source§

unsafe fn extract_unchecked(&self, i: usize) -> Self::Element

Extracts the i-th lane of self without bound-checking.
Source§

fn replace(&mut self, i: usize, val: Self::Element)

Replaces the i-th lane of self by val. Read more
Source§

unsafe fn replace_unchecked(&mut self, i: usize, val: Self::Element)

Replaces the i-th lane of self by val without bound-checking.
Source§

fn select(self, cond: Self::SimdBool, other: Self) -> Self

Merges self and other depending on the lanes of cond. Read more
Source§

fn map_lanes(self, f: impl Fn(Self::Element) -> Self::Element) -> Self
where Self: Clone,

Applies a function to each lane of self. Read more
Source§

fn zip_map_lanes( self, b: Self, f: impl Fn(Self::Element, Self::Element) -> Self::Element, ) -> Self
where Self: Clone,

Applies a function to each lane of self paired with the corresponding lane of b. Read more
Source§

impl Sub for AutoSimd<[u16; 4]>

Source§

type Output = AutoSimd<[u16; 4]>

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl SubAssign for AutoSimd<[u16; 4]>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl SubsetOf<AutoSimd<[u16; 4]>> for AutoSimd<[u16; 4]>

Source§

fn to_superset(&self) -> Self

The inclusion map: converts self to the equivalent element of its superset.
Source§

fn from_superset(element: &Self) -> Option<Self>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn from_superset_unchecked(element: &Self) -> Self

Use with care! Same as self.to_superset but without any property checks. Always succeeds.
Source§

fn is_in_subset(_: &Self) -> bool

Checks if element is actually part of the subset Self (and can be converted to it).
Source§

impl Zero for AutoSimd<[u16; 4]>

Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl<N: Copy> Copy for AutoSimd<N>

Source§

impl<N: Eq> Eq for AutoSimd<N>

Source§

impl PrimitiveSimdValue for AutoSimd<[u16; 4]>

Source§

impl<N> StructuralPartialEq for AutoSimd<N>