Skip to content

Commit

Permalink
Fix arch-specific unused import warnings (#352)
Browse files Browse the repository at this point in the history
Some recent PR added or removed some uses and introduced arch-specific
import warnings, so I just moved them the single functions they're used
in.
  • Loading branch information
kkysen authored Aug 3, 2023
2 parents 215b666 + 4c175d2 commit a1fd5bb
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 a1fd5bb

Please sign in to comment.