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 7, 2024
1 parent dcb87a2 commit d070786
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/looprestoration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -981,6 +972,11 @@ fn sgr_mix_rust<BD: BitDepth>(
mod neon {
use super::*;

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

extern "C" {
fn dav1d_sgr_box3_v_neon(
sumsq: *mut i32,
Expand Down Expand Up @@ -1634,6 +1630,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 d070786

Please sign in to comment.