@@ -42,7 +42,8 @@ pub unsafe fn _bextri_u32<const CONTROL: u32>(a: u32) -> u32 {
4242#[ target_feature( enable = "tbm" ) ]
4343#[ cfg_attr( test, assert_instr( blcfill) ) ]
4444#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
45- pub unsafe fn _blcfill_u32 ( x : u32 ) -> u32 {
45+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
46+ pub const unsafe fn _blcfill_u32 ( x : u32 ) -> u32 {
4647 x & ( x. wrapping_add ( 1 ) )
4748}
4849
@@ -53,7 +54,8 @@ pub unsafe fn _blcfill_u32(x: u32) -> u32 {
5354#[ target_feature( enable = "tbm" ) ]
5455#[ cfg_attr( test, assert_instr( blci) ) ]
5556#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
56- pub unsafe fn _blci_u32 ( x : u32 ) -> u32 {
57+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
58+ pub const unsafe fn _blci_u32 ( x : u32 ) -> u32 {
5759 x | !x. wrapping_add ( 1 )
5860}
5961
@@ -64,7 +66,8 @@ pub unsafe fn _blci_u32(x: u32) -> u32 {
6466#[ target_feature( enable = "tbm" ) ]
6567#[ cfg_attr( test, assert_instr( blcic) ) ]
6668#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
67- pub unsafe fn _blcic_u32 ( x : u32 ) -> u32 {
69+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
70+ pub const unsafe fn _blcic_u32 ( x : u32 ) -> u32 {
6871 !x & x. wrapping_add ( 1 )
6972}
7073
@@ -76,7 +79,8 @@ pub unsafe fn _blcic_u32(x: u32) -> u32 {
7679#[ target_feature( enable = "tbm" ) ]
7780#[ cfg_attr( test, assert_instr( blcmsk) ) ]
7881#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
79- pub unsafe fn _blcmsk_u32 ( x : u32 ) -> u32 {
82+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
83+ pub const unsafe fn _blcmsk_u32 ( x : u32 ) -> u32 {
8084 x ^ x. wrapping_add ( 1 )
8185}
8286
@@ -87,7 +91,8 @@ pub unsafe fn _blcmsk_u32(x: u32) -> u32 {
8791#[ target_feature( enable = "tbm" ) ]
8892#[ cfg_attr( test, assert_instr( blcs) ) ]
8993#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
90- pub unsafe fn _blcs_u32 ( x : u32 ) -> u32 {
94+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
95+ pub const unsafe fn _blcs_u32 ( x : u32 ) -> u32 {
9196 x | x. wrapping_add ( 1 )
9297}
9398
@@ -98,7 +103,8 @@ pub unsafe fn _blcs_u32(x: u32) -> u32 {
98103#[ target_feature( enable = "tbm" ) ]
99104#[ cfg_attr( test, assert_instr( blsfill) ) ]
100105#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
101- pub unsafe fn _blsfill_u32 ( x : u32 ) -> u32 {
106+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
107+ pub const unsafe fn _blsfill_u32 ( x : u32 ) -> u32 {
102108 x | x. wrapping_sub ( 1 )
103109}
104110
@@ -109,7 +115,8 @@ pub unsafe fn _blsfill_u32(x: u32) -> u32 {
109115#[ target_feature( enable = "tbm" ) ]
110116#[ cfg_attr( test, assert_instr( blsic) ) ]
111117#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
112- pub unsafe fn _blsic_u32 ( x : u32 ) -> u32 {
118+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
119+ pub const unsafe fn _blsic_u32 ( x : u32 ) -> u32 {
113120 !x | x. wrapping_sub ( 1 )
114121}
115122
@@ -121,7 +128,8 @@ pub unsafe fn _blsic_u32(x: u32) -> u32 {
121128#[ target_feature( enable = "tbm" ) ]
122129#[ cfg_attr( test, assert_instr( t1mskc) ) ]
123130#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
124- pub unsafe fn _t1mskc_u32 ( x : u32 ) -> u32 {
131+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
132+ pub const unsafe fn _t1mskc_u32 ( x : u32 ) -> u32 {
125133 !x | x. wrapping_add ( 1 )
126134}
127135
@@ -133,7 +141,8 @@ pub unsafe fn _t1mskc_u32(x: u32) -> u32 {
133141#[ target_feature( enable = "tbm" ) ]
134142#[ cfg_attr( test, assert_instr( tzmsk) ) ]
135143#[ stable( feature = "simd_x86" , since = "1.27.0" ) ]
136- pub unsafe fn _tzmsk_u32 ( x : u32 ) -> u32 {
144+ #[ rustc_const_unstable( feature = "stdarch_const_intrinsics" , issue = "none" ) ]
145+ pub const unsafe fn _tzmsk_u32 ( x : u32 ) -> u32 {
137146 !x & x. wrapping_sub ( 1 )
138147}
139148
0 commit comments