From c3c722c7c6a67d3c7ae24cf88edf059021505322 Mon Sep 17 00:00:00 2001 From: bendn Date: Mon, 2 Feb 2026 02:54:37 +0700 Subject: [PATCH] Fix nightly --- src/filter/simd.rs | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/filter/simd.rs b/src/filter/simd.rs index 374cc586..b8efa99b 100644 --- a/src/filter/simd.rs +++ b/src/filter/simd.rs @@ -1,10 +1,8 @@ ///! Optional module containing `portable_simd` versions of the most ///! important unfiltering algorithms. Enable using the `unstable` feature. use core::convert::TryInto; -use core::simd::cmp::{SimdOrd, SimdPartialOrd}; -use core::simd::num::{SimdInt, SimdUint}; -use core::simd::{LaneCount, Simd, SupportedLaneCount}; - +use core::simd::prelude::*; +use core::simd::Select; // Import the fastest arch-specific scalar implementations from the outer crate. #[cfg(not(target_arch = "x86_64"))] use super::paeth::filter_paeth as filter_paeth_chosen; @@ -20,10 +18,7 @@ fn paeth_predictor_simd( a_i16: Simd, b_i16: Simd, c_i16: Simd, -) -> Simd -where - LaneCount: SupportedLaneCount, -{ +) -> Simd { let pa = (b_i16 - c_i16).abs(); let pb = (a_i16 - c_i16).abs(); let pc = (a_i16 + b_i16 - c_i16 - c_i16).abs(); @@ -50,10 +45,7 @@ fn paeth_predictor_simd( a_i16: Simd, b_i16: Simd, c_i16: Simd, -) -> Simd -where - LaneCount: SupportedLaneCount, -{ +) -> Simd { let thresh = c_i16 * Simd::splat(3) - (a_i16 + b_i16); let lo = a_i16.simd_min(b_i16); let hi = a_i16.simd_max(b_i16);