Skip to content

Commit

Permalink
Add AVX512 engine
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersTrier committed Apr 15, 2024
1 parent d557c85 commit 8a5594b
Show file tree
Hide file tree
Showing 6 changed files with 819 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ bench = false
[[bench]]
name = "benchmarks"
harness = false

[features]
unstable-simd = []
8 changes: 8 additions & 0 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ pub use self::{
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub use self::{engine_avx2::Avx2, engine_ssse3::Ssse3};

#[cfg(feature = "unstable-simd")]
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
pub use self::engine_avx512::Avx512;

#[cfg(target_arch = "aarch64")]
pub use self::engine_neon::Neon;

Expand All @@ -53,6 +57,10 @@ mod engine_avx2;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
mod engine_ssse3;

#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[cfg(feature = "unstable-simd")]
mod engine_avx512;

#[cfg(target_arch = "aarch64")]
mod engine_neon;

Expand Down
Loading

0 comments on commit 8a5594b

Please sign in to comment.