From 41e3adb16ce9c2f653a2ad4628990517fccf146f Mon Sep 17 00:00:00 2001 From: awxkee Date: Tue, 24 Sep 2024 13:46:08 +0100 Subject: [PATCH] Removed arm support --- Cargo.lock | 6 +++--- Cargo.toml | 4 ++-- src/concat_alpha.rs | 10 ++-------- src/hsv_to_image.rs | 10 ++-------- src/image_to_hsv.rs | 10 ++-------- src/image_to_jzazbz.rs | 10 ++-------- src/image_to_linear.rs | 10 ++-------- src/image_to_linear_u8.rs | 10 ++-------- src/image_to_oklab.rs | 10 ++-------- src/image_to_sigmoidal.rs | 10 ++-------- src/image_to_xyz_lab.rs | 10 ++-------- src/image_xyza_laba.rs | 10 ++-------- src/jzazbz_to_image.rs | 10 ++-------- src/lib.rs | 5 +---- src/linear_to_image.rs | 10 ++-------- src/linear_to_image_u8.rs | 10 ++-------- src/linear_to_planar.rs | 10 ++-------- src/neon/xyz_lab_to_image.rs | 5 +---- src/oklab_to_image.rs | 10 ++-------- src/planar_to_linear.rs | 10 ++-------- src/rgb_expand.rs | 10 ++-------- src/sigmoidal_to_image.rs | 10 ++-------- src/xyz_lab_to_image.rs | 10 ++-------- src/xyza_laba_to_image.rs | 10 ++-------- 24 files changed, 47 insertions(+), 173 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4160375..d0eeb61 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -170,7 +170,7 @@ checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" [[package]] name = "colorutils-rs" -version = "0.5.11" +version = "0.5.13" dependencies = [ "erydanos", "half", @@ -231,9 +231,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "erydanos" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be3ce2ff34323f7dfdbc720a54ce2158825f199fc9edc2657e8ce8fce162f0ef" +checksum = "d60718e8a3b1adb22e0789c1ff070dfc68ab53a37a1202348ef252d9c836635d" dependencies = [ "num-traits", ] diff --git a/Cargo.toml b/Cargo.toml index 90a0f3e..a454d99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ workspace = { members = ["src/app"] } [package] name = "colorutils-rs" -version = "0.5.11" +version = "0.5.13" edition = "2021" description = "High performance utilities for color format handling and conversion." readme = "README.md" @@ -16,7 +16,7 @@ repository = "https://github.com/awxkee/colorutils-rs" exclude = ["*.jpg"] [dependencies] -erydanos = "0.2.12" +erydanos = "0.2.15" half = "2.4.1" num-traits = "0.2.19" diff --git a/src/concat_alpha.rs b/src/concat_alpha.rs index 74c0fd8..0b34ef1 100644 --- a/src/concat_alpha.rs +++ b/src/concat_alpha.rs @@ -9,10 +9,7 @@ use crate::avx::*; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::*; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use std::arch::aarch64::*; #[cfg(target_arch = "x86")] #[allow(unused_imports)] @@ -63,10 +60,7 @@ pub fn append_alpha( } } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] unsafe { while _cx + 4 < width as usize { let xyz_pixel = vld3q_f32(src_ptr.add(_cx * 3usize)); diff --git a/src/hsv_to_image.rs b/src/hsv_to_image.rs index 47d7102..6ccfc4f 100644 --- a/src/hsv_to_image.rs +++ b/src/hsv_to_image.rs @@ -9,10 +9,7 @@ use std::slice; use crate::image::ImageConfiguration; use crate::image_to_hsv_support::HsvTarget; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_hsv_u16_to_image; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_hsv_u16_to_image; @@ -47,10 +44,7 @@ fn hsv_u16_to_channels< _wide_row_handler = Some(sse_hsv_u16_to_image::); } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_hsv_u16_to_image::); diff --git a/src/image_to_hsv.rs b/src/image_to_hsv.rs index 086dff9..1bb1939 100644 --- a/src/image_to_hsv.rs +++ b/src/image_to_hsv.rs @@ -7,10 +7,7 @@ use crate::image::ImageConfiguration; use crate::image_to_hsv_support::HsvTarget; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_channels_to_hsv_u16; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_channels_to_hsv_u16; @@ -40,10 +37,7 @@ fn channels_to_hsv_u16< unsafe fn(usize, *const u8, usize, u32, *mut u16, usize, f32) -> usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_channels_to_hsv_u16::); diff --git a/src/image_to_jzazbz.rs b/src/image_to_jzazbz.rs index bc61c64..241b5ad 100644 --- a/src/image_to_jzazbz.rs +++ b/src/image_to_jzazbz.rs @@ -5,10 +5,7 @@ * // license that can be found in the LICENSE file. */ use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_image_to_jzazbz; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_image_to_jzazbz; @@ -53,10 +50,7 @@ fn channels_to_jzaz( unsafe fn(usize, *const u8, usize, u32, *mut f32, usize, f32, TransferFunction) -> usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = Some(neon_image_to_jzazbz::); } diff --git a/src/image_to_linear.rs b/src/image_to_linear.rs index b299a4c..e639256 100644 --- a/src/image_to_linear.rs +++ b/src/image_to_linear.rs @@ -9,10 +9,7 @@ use crate::avx::avx_channels_to_linear; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_channels_to_linear; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::*; @@ -112,10 +109,7 @@ fn channels_to_linear( }; } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/image_to_linear_u8.rs b/src/image_to_linear_u8.rs index 0a380b4..b73e35c 100644 --- a/src/image_to_linear_u8.rs +++ b/src/image_to_linear_u8.rs @@ -9,10 +9,7 @@ use std::slice; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::*; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_image_to_linear_unsigned::sse_channels_to_linear_u8; @@ -44,10 +41,7 @@ fn channels_to_linear( unsafe fn(usize, *const u8, usize, u32, *mut u8, usize, TransferFunction) -> usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/image_to_oklab.rs b/src/image_to_oklab.rs index 1286fe4..6eba5a7 100644 --- a/src/image_to_oklab.rs +++ b/src/image_to_oklab.rs @@ -7,10 +7,7 @@ #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::avx::avx_image_to_oklab; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_image_to_oklab; use crate::oklch::Oklch; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] @@ -54,10 +51,7 @@ fn channels_to_oklab( unsafe fn(usize, *const u8, usize, u32, *mut f32, usize, TransferFunction) -> usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/image_to_sigmoidal.rs b/src/image_to_sigmoidal.rs index 1fb832c..d71512c 100644 --- a/src/image_to_sigmoidal.rs +++ b/src/image_to_sigmoidal.rs @@ -9,10 +9,7 @@ use crate::avx::avx_image_to_sigmoidal_row; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_image_to_sigmoidal; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_image_to_sigmoidal_row; @@ -39,10 +36,7 @@ fn image_to_sigmoidal( let mut _wide_row_handler: Option usize> = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_image_to_sigmoidal::); } diff --git a/src/image_to_xyz_lab.rs b/src/image_to_xyz_lab.rs index 7471048..c6cf3de 100644 --- a/src/image_to_xyz_lab.rs +++ b/src/image_to_xyz_lab.rs @@ -9,10 +9,7 @@ use crate::avx::avx2_image_to_xyz_lab; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_channels_to_xyz_or_lab; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_channels_to_xyz_or_lab; @@ -59,10 +56,7 @@ fn channels_to_xyz usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/image_xyza_laba.rs b/src/image_xyza_laba.rs index 366710a..b83a3ec 100644 --- a/src/image_xyza_laba.rs +++ b/src/image_xyza_laba.rs @@ -6,10 +6,7 @@ */ use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_channels_to_xyza_or_laba; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_channels_to_xyza_laba; @@ -85,10 +82,7 @@ fn channels_to_xyz_with_alpha Some( diff --git a/src/jzazbz_to_image.rs b/src/jzazbz_to_image.rs index 8d36a10..9a8cdd5 100644 --- a/src/jzazbz_to_image.rs +++ b/src/jzazbz_to_image.rs @@ -6,10 +6,7 @@ */ use crate::image::ImageConfiguration; use crate::image_to_jzazbz::JzazbzTarget; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_jzazbz_to_image; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_jzazbz_to_image; @@ -38,10 +35,7 @@ fn jzazbz_to_image( _wide_row_handle = Some(sse_jzazbz_to_image::); } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = Some(neon_jzazbz_to_image::); } diff --git a/src/lib.rs b/src/lib.rs index 5e6da0d..40df0df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -38,10 +38,7 @@ mod linear_to_image; mod linear_to_image_u8; pub mod linear_to_planar; mod luv; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] mod neon; mod oklab; mod oklab_to_image; diff --git a/src/linear_to_image.rs b/src/linear_to_image.rs index e342e5d..9b883dc 100644 --- a/src/linear_to_image.rs +++ b/src/linear_to_image.rs @@ -9,10 +9,7 @@ use crate::avx::avx_linear_to_gamma; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_linear_to_gamma; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_linear_to_gamma; @@ -37,10 +34,7 @@ fn linear_to_gamma_channels usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/linear_to_image_u8.rs b/src/linear_to_image_u8.rs index 1c9ad01..635174e 100644 --- a/src/linear_to_image_u8.rs +++ b/src/linear_to_image_u8.rs @@ -9,10 +9,7 @@ use std::slice; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::*; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_image_to_linear_unsigned::sse_channels_to_linear_u8; @@ -82,10 +79,7 @@ fn linear_to_gamma_channels Some( diff --git a/src/linear_to_planar.rs b/src/linear_to_planar.rs index f2fb08c..65423fa 100644 --- a/src/linear_to_planar.rs +++ b/src/linear_to_planar.rs @@ -5,10 +5,7 @@ * // license that can be found in the LICENSE file. */ -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::linear_to_planar::neon_linear_plane_to_gamma; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_linear_plane_to_gamma; @@ -33,10 +30,7 @@ fn linear_to_gamma_channels( unsafe fn(usize, *const f32, u32, *mut u8, u32, u32, TransferFunction) -> usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_linear_plane_to_gamma); } diff --git a/src/neon/xyz_lab_to_image.rs b/src/neon/xyz_lab_to_image.rs index c8e331b..10b118c 100644 --- a/src/neon/xyz_lab_to_image.rs +++ b/src/neon/xyz_lab_to_image.rs @@ -78,10 +78,7 @@ pub(crate) unsafe fn neon_xyz_lab_vld< ) } -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] #[inline(always)] pub unsafe fn neon_xyz_to_channels< const CHANNELS_CONFIGURATION: u8, diff --git a/src/oklab_to_image.rs b/src/oklab_to_image.rs index 330bb64..1c93e0e 100644 --- a/src/oklab_to_image.rs +++ b/src/oklab_to_image.rs @@ -8,10 +8,7 @@ use crate::avx::avx_oklab_to_image; use crate::image::ImageConfiguration; use crate::image_to_oklab::OklabTarget; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_oklab_to_image; use crate::oklch::Oklch; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] @@ -106,10 +103,7 @@ fn oklab_to_image( }; } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handle = match transfer_function { TransferFunction::Srgb => Some( diff --git a/src/planar_to_linear.rs b/src/planar_to_linear.rs index 367bb39..6b422d4 100644 --- a/src/planar_to_linear.rs +++ b/src/planar_to_linear.rs @@ -5,10 +5,7 @@ * // license that can be found in the LICENSE file. */ -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::planar_to_linear::neon_plane_to_linear; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_plane_to_linear; @@ -37,10 +34,7 @@ fn channels_to_linear( _wide_row_handler = Some(sse_plane_to_linear); } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_plane_to_linear); } diff --git a/src/rgb_expand.rs b/src/rgb_expand.rs index dfe68a4..af81e56 100644 --- a/src/rgb_expand.rs +++ b/src/rgb_expand.rs @@ -9,10 +9,7 @@ use crate::avx::*; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::*; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use std::arch::aarch64::*; #[cfg(target_arch = "x86")] #[allow(unused_imports)] @@ -62,10 +59,7 @@ pub fn rgb_to_rgba( } } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] unsafe { let v_alpha = vdupq_n_u8(default_alpha); let src_ptr = src.as_ptr().add(src_offset); diff --git a/src/sigmoidal_to_image.rs b/src/sigmoidal_to_image.rs index 6b9abcf..1b3b6863 100644 --- a/src/sigmoidal_to_image.rs +++ b/src/sigmoidal_to_image.rs @@ -8,10 +8,7 @@ #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::avx::avx_from_sigmoidal_row; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_from_sigmoidal_row; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_from_sigmoidal_row; @@ -48,10 +45,7 @@ fn sigmoidal_to_image( _wide_row_handler = Some(avx_from_sigmoidal_row::); } - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = Some(neon_from_sigmoidal_row::); } diff --git a/src/xyz_lab_to_image.rs b/src/xyz_lab_to_image.rs index 745cb10..8fbb4fb 100644 --- a/src/xyz_lab_to_image.rs +++ b/src/xyz_lab_to_image.rs @@ -9,10 +9,7 @@ use crate::avx::avx_xyz_to_channels; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_xyz_to_channels; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_xyz_to_channels; @@ -135,10 +132,7 @@ fn xyz_to_channels Some( diff --git a/src/xyza_laba_to_image.rs b/src/xyza_laba_to_image.rs index 5e24150..6d5bbca 100644 --- a/src/xyza_laba_to_image.rs +++ b/src/xyza_laba_to_image.rs @@ -9,10 +9,7 @@ use crate::avx::avx_xyza_to_image; use crate::gamma_curves::TransferFunction; use crate::image::ImageConfiguration; -#[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" -))] +#[cfg(all(target_arch = "aarch64", target_feature = "neon"))] use crate::neon::neon_xyza_to_image; #[cfg(any(target_arch = "x86_64", target_arch = "x86"))] use crate::sse::sse_xyza_to_image; @@ -49,10 +46,7 @@ fn xyz_with_alpha_to_channels usize, > = None; - #[cfg(all( - any(target_arch = "aarch64", target_arch = "arm"), - target_feature = "neon" - ))] + #[cfg(all(target_arch = "aarch64", target_feature = "neon"))] { _wide_row_handler = match transfer_function { TransferFunction::Srgb => Some(