Skip to content

Commit

Permalink
Thread improvements, a lot of reworking
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Jun 4, 2024
1 parent 6539294 commit 305c78e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() {

let start_time = Instant::now();

let mut scaler = LabScaler::new(ResamplingFunction::Lanczos3);
let mut scaler = Scaler::new(ResamplingFunction::Lanczos3);
scaler.set_threading_policy(ThreadingPolicy::Adaptive);
let store =
ImageStore::<u8, 4>::from_slice(&mut bytes, dimensions.0 as usize, dimensions.1 as usize);
Expand Down
4 changes: 4 additions & 0 deletions src/acceleration_feature.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#[derive(Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq)]
#[allow(dead_code)]
pub(crate) enum AccelerationFeature {
#[cfg(all(target_arch = "aarch64", target_feature = "neon"))]
#[allow(dead_code)]
Neon,
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
#[allow(dead_code)]
Sse,
#[allow(dead_code)]
Native
}

0 comments on commit 305c78e

Please sign in to comment.