Skip to content

Commit

Permalink
Merge pull request #45 from awxkee/dev
Browse files Browse the repository at this point in the history
Clippy
  • Loading branch information
awxkee authored Jan 12, 2025
2 parents 63f0059 + dba8740 commit d38571f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/cbcr8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,13 @@ impl HorizontalConvolutionPass<u8, 2> for ImageStore<'_, u8, 2> {
}
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
{
if std::arch::is_x86_feature_detected!("sse4.1") {
if _scale_factor < 8. {
use crate::sse::{
convolve_horizontal_cbcr_sse_hrs_row_one,
convolve_horizontal_cbcr_sse_hrs_rows_4,
};
_dispatcher_4_rows = Some(convolve_horizontal_cbcr_sse_hrs_rows_4);
_dispatcher_1_row = convolve_horizontal_cbcr_sse_hrs_row_one;
}
if std::arch::is_x86_feature_detected!("sse4.1") && _scale_factor < 8. {
use crate::sse::{
convolve_horizontal_cbcr_sse_hrs_row_one,
convolve_horizontal_cbcr_sse_hrs_rows_4,
};
_dispatcher_4_rows = Some(convolve_horizontal_cbcr_sse_hrs_rows_4);
_dispatcher_1_row = convolve_horizontal_cbcr_sse_hrs_row_one;
}
}
convolve_horizontal_dispatch_u8(
Expand Down

0 comments on commit d38571f

Please sign in to comment.