Skip to content

Commit

Permalink
mod looprestoration::neon: Move neon-only imports to mod neon.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkysen committed Jul 4, 2024
1 parent 46a8a29 commit 6cb9a7a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/looprestoration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +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;

Expand Down Expand Up @@ -1018,6 +1012,10 @@ fn sgr_mix_rust<BD: BitDepth>(
mod neon {
use super::*;

use crate::src::align::Align16;
use std::ffi::c_void;
use std::ptr;

unsafe fn rav1d_wiener_filter_h_neon<BD: BitDepth>(
dst: &mut [i16],
left: *const LeftPixelRow<BD::Pixel>,
Expand Down Expand Up @@ -1635,6 +1633,10 @@ mod neon {
mod neon {
use super::*;

use crate::src::align::Align16;
use std::ffi::c_void;
use std::ptr;

fn rotate<const LEN: usize, const MID: usize>(
a: &mut [*mut i32; LEN],
b: &mut [*mut i16; LEN],
Expand Down

0 comments on commit 6cb9a7a

Please sign in to comment.