Skip to content

Commit

Permalink
Only enable AVX512 features for x86(-64) targets
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador authored and mcountryman committed Mar 28, 2024
1 parent af5272a commit cc3155d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
//!
//! Feature detection tries to use the fastest supported feature first.
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(feature = "nightly", feature(stdarch_x86_avx512, avx512_target_feature))]
#![cfg_attr(
all(feature = "nightly", any(target_arch = "x86", target_arch = "x86_64")),
feature(stdarch_x86_avx512, avx512_target_feature)
)]

#[doc(hidden)]
pub mod hash;
Expand Down

0 comments on commit cc3155d

Please sign in to comment.