#[repr(simd)]
pub struct u16x4(_, _, _, _);
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
A 64-bit vector with 4 u16
lanes.
pub const fn new(x0: u16, x1: u16, x2: u16, x3: u16) -> Self | [src] |
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Creates a new instance with each vector elements initialized
with the provided values.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Returns the number of vector lanes.
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Constructs a new instance with each element initialized to
value
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Extracts the value at index
.
If index >= Self::lanes()
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Extracts the value at index
.
If index >= Self::lanes()
the behavior is undefined.
#[must_use = "replace does not modify the original value - it returns a new vector with the value at `index` replaced by `new_value`d"]
pub fn replace(self, index: usize, new_value: u16) -> Self
| [src] |
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Returns a new vector where the value at index
is replaced by new_value
.
If index >= Self::lanes()
.
#[must_use = "replace_unchecked does not modify the original value - it returns a new vector with the value at `index` replaced by `new_value`d"]
pub unsafe fn replace_unchecked(self, index: usize, new_value: u16) -> Self
| [src] |
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Returns a new vector where the value at index
is replaced by new_value
.
If index >= Self::lanes()
the behavior is undefined.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Writes the values of the vector to the slice
.
If slice.len() < Self::lanes()
or &slice[0]
is not
aligned to an align_of::<Self>()
boundary.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Writes the values of the vector to the slice
.
If slice.len() < Self::lanes()
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Writes the values of the vector to the slice
.
If slice.len() < Self::lanes()
or &slice[0]
is not
aligned to an align_of::<Self>()
boundary, the behavior is
undefined.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Writes the values of the vector to the slice
.
If slice.len() < Self::lanes()
the behavior is undefined.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Instantiates a new vector with the values of the slice
.
If slice.len() < Self::lanes()
or &slice[0]
is not aligned
to an align_of::<Self>()
boundary.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Instantiates a new vector with the values of the slice
.
If slice.len() < Self::lanes()
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Instantiates a new vector with the values of the slice
.
If slice.len() < Self::lanes()
or &slice[0]
is not aligned
to an align_of::<Self>()
boundary, the behavior is undefined.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Instantiates a new vector with the values of the slice
.
If slice.len() < Self::lanes()
the behavior is undefined.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise equality comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise inequality comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise less-than comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise less-than-or-equals comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise greater-than comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise greater-than-or-equals comparison.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Horizontal sum of the vector elements.
The intrinsic performs a tree-reduction of the vector elements.
That is, for an 8 element vector:
((x0 + x1) + (x2 + x3)) + ((x4 + x5) + (x6 + x7))
If an operation overflows it returns the mathematical result
modulo 2^n
where n
is the number of times it overflows.
If one of the vector element is NaN
the reduction returns
NaN
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Horizontal product of the vector elements.
The intrinsic performs a tree-reduction of the vector elements.
That is, for an 8 element vector:
((x0 * x1) * (x2 * x3)) * ((x4 * x5) * (x6 * x7))
If an operation overflows it returns the mathematical result
modulo 2^n
where n
is the number of times it overflows.
If one of the vector element is NaN
the reduction returns
NaN
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Largest vector element value.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Smallest vector element value.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise bitwise and
of the vector elements.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise bitwise or
of the vector elements.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Lane-wise bitwise xor
of the vector elements.
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Minimum of two vectors.
Returns a new vector containing the minimum value of each of
the input vector lanes.
[−]
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Maximum of two vectors.
Returns a new vector containing the minimum value of each of
the input vector lanes.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
The resulting type after applying the +
operator.
[−]
Performs the +
operation.
The resulting type after applying the -
operator.
[−]
Performs the -
operation.
The resulting type after applying the *
operator.
[−]
Performs the *
operation.
The resulting type after applying the /
operator.
[−]
Performs the /
operation.
The resulting type after applying the %
operator.
[−]
Performs the %
operation.
Performs the +=
operation.
Performs the -=
operation.
Performs the *=
operation.
Performs the /=
operation.
Performs the %=
operation.
The resulting type after applying the +
operator.
[−]
Performs the +
operation.
The resulting type after applying the +
operator.
Performs the +
operation.
The resulting type after applying the -
operator.
[−]
Performs the -
operation.
The resulting type after applying the -
operator.
Performs the -
operation.
The resulting type after applying the *
operator.
[−]
Performs the *
operation.
The resulting type after applying the *
operator.
Performs the *
operation.
The resulting type after applying the /
operator.
[−]
Performs the /
operation.
The resulting type after applying the /
operator.
Performs the /
operation.
The resulting type after applying the %
operator.
[−]
Performs the %
operation.
The resulting type after applying the %
operator.
Performs the %
operation.
Performs the +=
operation.
Performs the -=
operation.
Performs the *=
operation.
Performs the /=
operation.
Performs the %=
operation.
The resulting type after applying the ^
operator.
[−]
Performs the ^
operation.
The resulting type after applying the ^
operator.
Performs the ^
operation.
The resulting type after applying the &
operator.
[−]
Performs the &
operation.
The resulting type after applying the &
operator.
Performs the &
operation.
The resulting type after applying the |
operator.
[−]
Performs the |
operation.
The resulting type after applying the |
operator.
Performs the |
operation.
Performs the &=
operation.
Performs the |=
operation.
Performs the ^=
operation.
The resulting type after applying the !
operator.
Performs the unary !
operation.
The resulting type after applying the ^
operator.
[−]
Performs the ^
operation.
The resulting type after applying the &
operator.
[−]
Performs the &
operation.
The resulting type after applying the |
operator.
[−]
Performs the |
operation.
Performs the &=
operation.
Performs the |=
operation.
Performs the ^=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
The resulting type after applying the <<
operator.
[−]
Performs the <<
operation.
The resulting type after applying the >>
operator.
[−]
Performs the >>
operation.
Performs the <<=
operation.
Performs the >>=
operation.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
Formats the value using the given formatter.
fn eq(&self, other: &Self) -> bool | [src] |
[−]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Self) -> bool | [src] |
[−]
This method tests for !=
.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.
🔬 This is a nightly-only experimental API. (
stdsimd
#48556)
Safe lossless bitwise from T
to Self
.