pub trait SimdUint: Copy + Sealed {
type Scalar;
// Required methods
fn saturating_add(self, second: Self) -> Self;
fn saturating_sub(self, second: Self) -> Self;
fn reduce_sum(self) -> Self::Scalar;
fn reduce_product(self) -> Self::Scalar;
fn reduce_max(self) -> Self::Scalar;
fn reduce_min(self) -> Self::Scalar;
fn reduce_and(self) -> Self::Scalar;
fn reduce_or(self) -> Self::Scalar;
fn reduce_xor(self) -> Self::Scalar;
}
🔬This is a nightly-only experimental API. (
portable_simd
#86656)Expand description
对无符号整数的 SIMD vectors 的操作。
Required Associated Types§
Required Methods§
sourcefn saturating_add(self, second: Self) -> Self
fn saturating_add(self, second: Self) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)sourcefn saturating_sub(self, second: Self) -> Self
fn saturating_sub(self, second: Self) -> Self
🔬This is a nightly-only experimental API. (
portable_simd
#86656)sourcefn reduce_sum(self) -> Self::Scalar
fn reduce_sum(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回 vector 的 lane 总和,带包装加法。
sourcefn reduce_product(self) -> Self::Scalar
fn reduce_product(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回 vector 的 lane 的乘积,带包装乘法。
sourcefn reduce_max(self) -> Self::Scalar
fn reduce_max(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回 vector 中的最大 lane。
sourcefn reduce_min(self) -> Self::Scalar
fn reduce_min(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回 vector 中的最小 lane。
sourcefn reduce_and(self) -> Self::Scalar
fn reduce_and(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回跨 vector lane 的累积按位与。
sourcefn reduce_or(self) -> Self::Scalar
fn reduce_or(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回跨 vector lane 的累积按位或。
sourcefn reduce_xor(self) -> Self::Scalar
fn reduce_xor(self) -> Self::Scalar
🔬This is a nightly-only experimental API. (
portable_simd
#86656)返回跨 vector lane 的累积按位异或。