Merge pull request #503 from folkertdev/sync-from-rust-2026-01-27
Sync from rust 2026 01 27
This commit is contained in:
commit
d9aae8cc54
3 changed files with 2 additions and 4 deletions
|
|
@ -31,10 +31,6 @@
|
||||||
any(target_arch = "powerpc", target_arch = "powerpc64"),
|
any(target_arch = "powerpc", target_arch = "powerpc64"),
|
||||||
feature(stdarch_powerpc)
|
feature(stdarch_powerpc)
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(
|
|
||||||
all(target_arch = "x86_64", target_feature = "avx512f"),
|
|
||||||
feature(stdarch_x86_avx512)
|
|
||||||
)]
|
|
||||||
#![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
|
#![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
|
||||||
#![deny(
|
#![deny(
|
||||||
unsafe_op_in_unsafe_fn,
|
unsafe_op_in_unsafe_fn,
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ pub trait SimdInt: Copy + Sealed {
|
||||||
/// let sat = x.saturating_sub(max);
|
/// let sat = x.saturating_sub(max);
|
||||||
/// assert_eq!(unsat, Simd::from_array([1, MAX, MIN, 0]));
|
/// assert_eq!(unsat, Simd::from_array([1, MAX, MIN, 0]));
|
||||||
/// assert_eq!(sat, Simd::from_array([MIN, MIN, MIN, 0]));
|
/// assert_eq!(sat, Simd::from_array([MIN, MIN, MIN, 0]));
|
||||||
|
/// ```
|
||||||
fn saturating_sub(self, second: Self) -> Self;
|
fn saturating_sub(self, second: Self) -> Self;
|
||||||
|
|
||||||
/// Lanewise absolute value, implemented in Rust.
|
/// Lanewise absolute value, implemented in Rust.
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ pub trait SimdUint: Copy + Sealed {
|
||||||
/// let sat = x.saturating_sub(max);
|
/// let sat = x.saturating_sub(max);
|
||||||
/// assert_eq!(unsat, Simd::from_array([3, 2, 1, 0]));
|
/// assert_eq!(unsat, Simd::from_array([3, 2, 1, 0]));
|
||||||
/// assert_eq!(sat, Simd::splat(0));
|
/// assert_eq!(sat, Simd::splat(0));
|
||||||
|
/// ```
|
||||||
fn saturating_sub(self, second: Self) -> Self;
|
fn saturating_sub(self, second: Self) -> Self;
|
||||||
|
|
||||||
/// Lanewise absolute difference.
|
/// Lanewise absolute difference.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue