@@ -78,38 +78,45 @@ pub(crate) const fn assert_eq_m512h(a: __m512h, b: __m512h) {
7878}
7979
8080#[ target_feature( enable = "sse2" ) ]
81+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
8182pub ( crate ) const fn get_m128d ( a : __m128d , idx : usize ) -> f64 {
82- a. as_f64x2 ( ) . extract ( idx)
83+ a. as_f64x2 ( ) . extract_dyn ( idx)
8384}
8485
8586#[ target_feature( enable = "sse" ) ]
87+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
8688pub ( crate ) const fn get_m128 ( a : __m128 , idx : usize ) -> f32 {
87- a. as_f32x4 ( ) . extract ( idx)
89+ a. as_f32x4 ( ) . extract_dyn ( idx)
8890}
8991
9092#[ target_feature( enable = "avx" ) ]
93+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
9194pub ( crate ) const fn get_m256d ( a : __m256d , idx : usize ) -> f64 {
92- a. as_f64x4 ( ) . extract ( idx)
95+ a. as_f64x4 ( ) . extract_dyn ( idx)
9396}
9497
9598#[ target_feature( enable = "avx" ) ]
99+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
96100pub ( crate ) const fn get_m256 ( a : __m256 , idx : usize ) -> f32 {
97- a. as_f32x8 ( ) . extract ( idx)
101+ a. as_f32x8 ( ) . extract_dyn ( idx)
98102}
99103
100104#[ target_feature( enable = "avx512f" ) ]
105+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
101106pub ( crate ) const fn get_m512 ( a : __m512 , idx : usize ) -> f32 {
102- a. as_f32x16 ( ) . extract ( idx)
107+ a. as_f32x16 ( ) . extract_dyn ( idx)
103108}
104109
105110#[ target_feature( enable = "avx512f" ) ]
111+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
106112pub ( crate ) const fn get_m512d ( a : __m512d , idx : usize ) -> f64 {
107- a. as_f64x8 ( ) . extract ( idx)
113+ a. as_f64x8 ( ) . extract_dyn ( idx)
108114}
109115
110116#[ target_feature( enable = "avx512f" ) ]
117+ #[ rustc_const_unstable( feature = "stdarch_const_helpers" , issue = "none" ) ]
111118pub ( crate ) const fn get_m512i ( a : __m512i , idx : usize ) -> i64 {
112- a. as_i64x8 ( ) . extract ( idx)
119+ a. as_i64x8 ( ) . extract_dyn ( idx)
113120}
114121
115122// not actually an intrinsic but useful in various tests as we ported from
0 commit comments