diff --git a/src/looprestoration.rs b/src/looprestoration.rs index 6da5d4780..faf4e5842 100644 --- a/src/looprestoration.rs +++ b/src/looprestoration.rs @@ -26,15 +26,6 @@ use zerocopy::AsBytes; use zerocopy::FromBytes; use zerocopy::FromZeroes; -#[cfg(all(feature = "asm", any(target_arch = "arm", target_arch = "aarch64")))] -use ::{std::ffi::c_void, std::ptr}; - -#[cfg(all(feature = "asm", any(target_arch = "arm", target_arch = "aarch64")))] -use crate::src::align::Align16; - -#[cfg(all(feature = "asm", target_arch = "arm"))] -use libc::intptr_t; - #[cfg(all( feature = "asm", any(target_arch = "x86", target_arch = "x86_64", target_arch = "aarch64") @@ -1018,6 +1009,11 @@ fn sgr_mix_rust( mod neon { use super::*; + use crate::src::align::Align16; + use libc::intptr_t; + use std::ffi::c_void; + use std::ptr; + unsafe fn rav1d_wiener_filter_h_neon( dst: &mut [i16], left: *const LeftPixelRow, @@ -1635,6 +1631,10 @@ mod neon { mod neon { use super::*; + use crate::src::align::Align16; + use std::ffi::c_void; + use std::ptr; + fn rotate( a: &mut [*mut i32; LEN], b: &mut [*mut i16; LEN],