Skip to content

Commit 18de239

Browse files
committed
add stdarch_x86_avx512 feature flag for AVX-512-supporting architectures
1 parent 94f4f68 commit 18de239

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/core_simd/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
any(target_arch = "powerpc", target_arch = "powerpc64"),
3434
feature(stdarch_powerpc)
3535
)]
36+
#![cfg_attr(
37+
all(target_arch = "x86_64", target_feature = "avx512f"),
38+
feature(stdarch_x86_avx512)
39+
)]
3640
#![warn(missing_docs, clippy::missing_inline_in_public_items)] // basically all items, really
3741
#![deny(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
3842
#![allow(internal_features)]

0 commit comments

Comments
 (0)