Skip to content

Commit 34da321

Browse files
Enable stdarch_x86_avx512 for cpu has avx512bw (#1551)
1 parent b4b1eb7 commit 34da321

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#![doc(test(attr(allow(unused_variables), deny(warnings))))]
5050
#![no_std]
5151
#![cfg_attr(feature = "simd_support", feature(portable_simd))]
52+
#![cfg_attr(
53+
all(feature = "simd_support", target_feature = "avx512bw"),
54+
feature(stdarch_x86_avx512)
55+
)]
5256
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5357
#![allow(
5458
clippy::float_cmp,

0 commit comments

Comments
 (0)