Skip to content

Commit

Permalink
fn ipred_z2_neon: Move arch-specific imports to inside the fn to …
Browse files Browse the repository at this point in the history
…avoid unused imports.
  • Loading branch information
kkysen committed Aug 3, 2023
1 parent 4be13be commit 4c175d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/ipred_tmpl_16.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::include::common::bitdepth::BitDepth;
use crate::include::common::bitdepth::BitDepth16;
use crate::include::stddef::*;
use crate::include::stdint::*;
#[cfg(feature = "asm")]
Expand Down Expand Up @@ -2288,6 +2286,9 @@ unsafe extern "C" fn ipred_z2_neon(
max_height: libc::c_int,
bitdepth_max: libc::c_int,
) {
use crate::include::common::bitdepth::BitDepth;
use crate::include::common::bitdepth::BitDepth16;

let is_sm = angle >> 9 & 0x1 as libc::c_int;
let enable_intra_edge_filter = angle >> 10;
angle &= 511 as libc::c_int;
Expand Down
5 changes: 3 additions & 2 deletions src/ipred_tmpl_8.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use crate::include::common::bitdepth::BitDepth;
use crate::include::common::bitdepth::BitDepth8;
use crate::include::stddef::*;
use crate::include::stdint::*;

Expand Down Expand Up @@ -2241,6 +2239,9 @@ unsafe extern "C" fn ipred_z2_neon(
max_width: libc::c_int,
max_height: libc::c_int,
) {
use crate::include::common::bitdepth::BitDepth;
use crate::include::common::bitdepth::BitDepth8;

let is_sm = angle >> 9 & 0x1 as libc::c_int;
let enable_intra_edge_filter = angle >> 10;
angle &= 511 as libc::c_int;
Expand Down

0 comments on commit 4c175d2

Please sign in to comment.