Skip to content

Commit

Permalink
Under features = ["nightly_stdsimd"], only enable `stdarch_x86_avx5…
Browse files Browse the repository at this point in the history
…12` feature on x86 or x86_64 targets. (#225)
  • Loading branch information
zachs18 committed Feb 8, 2024
1 parent 04ed11b commit 1afddf9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
#![allow(clippy::uninlined_format_args)]
#![cfg_attr(feature = "nightly_docs", feature(doc_cfg))]
#![cfg_attr(feature = "nightly_portable_simd", feature(portable_simd))]
#![cfg_attr(feature = "nightly_stdsimd", feature(stdarch_x86_avx512))]
#![cfg_attr(
all(
feature = "nightly_stdsimd",
any(target_arch = "x86_64", target_arch = "x86")
),
feature(stdarch_x86_avx512)
)]

//! This crate gives small utilities for casting between plain data types.
//!
Expand Down

0 comments on commit 1afddf9

Please sign in to comment.