Merge branch 'rust-upstream-2026-01-27' into sync-from-rust-2026-01-27

This commit is contained in:
Folkert de Vries 2026-01-28 00:41:25 +01:00
commit b32dd9bcec
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@ pub trait SimdInt: Copy + Sealed {
/// let sat = x.saturating_sub(max);
/// assert_eq!(unsat, Simd::from_array([1, MAX, MIN, 0]));
/// assert_eq!(sat, Simd::from_array([MIN, MIN, MIN, 0]));
/// ```
fn saturating_sub(self, second: Self) -> Self;
/// Lanewise absolute value, implemented in Rust.

View file

@ -55,6 +55,7 @@ pub trait SimdUint: Copy + Sealed {
/// let sat = x.saturating_sub(max);
/// assert_eq!(unsat, Simd::from_array([3, 2, 1, 0]));
/// assert_eq!(sat, Simd::splat(0));
/// ```
fn saturating_sub(self, second: Self) -> Self;
/// Lanewise absolute difference.