Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jan 29, 2025
1 parent 2339fa2 commit ea1bb2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/benches/resize_rgba/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
let dimensions = img.dimensions();
let src_bytes = img.as_bytes();

/*c.bench_function("Pic scale RGBA with alpha: Lanczos 3", |b| {
c.bench_function("Pic scale RGBA with alpha: Lanczos 3", |b| {
let copied: Vec<u8> = Vec::from(src_bytes);
b.iter(|| {
let mut scaler = Scaler::new(ResamplingFunction::Lanczos3);
Expand Down Expand Up @@ -410,7 +410,7 @@ pub fn criterion_benchmark(c: &mut Criterion) {
panic!("Can't resize by accelerate");
}
})
});*/
});

c.bench_function("Pic scale RGBA1010102(N0: Lanczos 3/Speed", |b| {
let copied: Vec<u8> = Vec::from(src_bytes);
Expand Down
4 changes: 2 additions & 2 deletions src/neon/horizontal_ar30.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ unsafe fn neon_convolve_horizontal_rgba_rows_4_impl<const AR_TYPE: usize, const
) {
unsafe {
const PRECISION: i32 = 16;
const ROUNDING: i32 = 1 << (PRECISION - 1) - 1;
const ROUNDING: i32 = (1 << (PRECISION - 1)) - 1;

let init = vdupq_n_s32(ROUNDING);

Expand Down Expand Up @@ -301,7 +301,7 @@ unsafe fn neon_convolve_horizontal_rgba_row_impl<const AR_TYPE: usize, const AR_
) {
unsafe {
const PRECISION: i32 = 16;
const ROUNDING: i32 = 1 << (PRECISION - 1) - 1;
const ROUNDING: i32 = (1 << (PRECISION - 1)) - 1;

let init = vdupq_n_s32(ROUNDING);

Expand Down

0 comments on commit ea1bb2b

Please sign in to comment.