e
Diffstat (limited to 'src/lib.rs')
| -rwxr-xr-x | src/lib.rs | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -49,7 +49,6 @@ #![cfg_attr(test, feature(test))] use std::collections::VecDeque; -use std::simd::{LaneCount, SupportedLaneCount}; pub extern crate imgref; @@ -114,9 +113,7 @@ pub fn simd_blur<T, Bsimd: StackBlurrable, Bsingle: StackBlurrable, const LANES: mut to_pixel_simd: impl FnMut(Bsimd) -> [T; LANES], mut to_blurrable_single: impl FnMut(&T) -> Bsingle, mut to_pixel_single: impl FnMut(Bsingle) -> T, -) where - LaneCount<LANES>: SupportedLaneCount, -{ +) { #[cfg(not(doc))] use imgref_iter::iter::{ SimdIterWindow, SimdIterWindowPtrMut, SimdIterWindows, SimdIterWindowsPtrMut, @@ -190,10 +187,7 @@ pub fn blur_argb(buffer: &mut ImgRefMut<u32>, radius: usize) { /// /// This is a version of [`simd_blur`] with pre-filled conversion routines that /// provide good results for blur radii <= 4096. Larger radii may overflow. -pub fn simd_blur_argb<const LANES: usize>(buffer: &mut ImgRefMut<u32>, radius: usize) -where - LaneCount<LANES>: SupportedLaneCount, -{ +pub fn simd_blur_argb<const LANES: usize>(buffer: &mut ImgRefMut<u32>, radius: usize) { simd_blur( buffer, radius, |