@@ -1987,6 +1987,13 @@ extern "rust-intrinsic" {
1987
1987
/// The stabilized versions of this intrinsic are available on the integer
1988
1988
/// primitives via the `count_ones` method. For example,
1989
1989
/// [`u32::count_ones`]
1990
+ #[ cfg( not( bootstrap) ) ]
1991
+ #[ rustc_const_stable( feature = "const_ctpop" , since = "1.40.0" ) ]
1992
+ #[ rustc_safe_intrinsic]
1993
+ #[ rustc_nounwind]
1994
+ pub fn ctpop < T : Copy > ( x : T ) -> u32 ;
1995
+
1996
+ #[ cfg( bootstrap) ]
1990
1997
#[ rustc_const_stable( feature = "const_ctpop" , since = "1.40.0" ) ]
1991
1998
#[ rustc_safe_intrinsic]
1992
1999
#[ rustc_nounwind]
@@ -2028,6 +2035,13 @@ extern "rust-intrinsic" {
2028
2035
/// let num_leading = ctlz(x);
2029
2036
/// assert_eq!(num_leading, 16);
2030
2037
/// ```
2038
+ #[ cfg( not( bootstrap) ) ]
2039
+ #[ rustc_const_stable( feature = "const_ctlz" , since = "1.40.0" ) ]
2040
+ #[ rustc_safe_intrinsic]
2041
+ #[ rustc_nounwind]
2042
+ pub fn ctlz < T : Copy > ( x : T ) -> u32 ;
2043
+
2044
+ #[ cfg( bootstrap) ]
2031
2045
#[ rustc_const_stable( feature = "const_ctlz" , since = "1.40.0" ) ]
2032
2046
#[ rustc_safe_intrinsic]
2033
2047
#[ rustc_nounwind]
@@ -2050,6 +2064,12 @@ extern "rust-intrinsic" {
2050
2064
/// let num_leading = unsafe { ctlz_nonzero(x) };
2051
2065
/// assert_eq!(num_leading, 3);
2052
2066
/// ```
2067
+ #[ cfg( not( bootstrap) ) ]
2068
+ #[ rustc_const_stable( feature = "constctlz" , since = "1.50.0" ) ]
2069
+ #[ rustc_nounwind]
2070
+ pub fn ctlz_nonzero < T : Copy > ( x : T ) -> u32 ;
2071
+
2072
+ #[ cfg( bootstrap) ]
2053
2073
#[ rustc_const_stable( feature = "constctlz" , since = "1.50.0" ) ]
2054
2074
#[ rustc_nounwind]
2055
2075
pub fn ctlz_nonzero < T : Copy > ( x : T ) -> T ;
@@ -2090,6 +2110,13 @@ extern "rust-intrinsic" {
2090
2110
/// let num_trailing = cttz(x);
2091
2111
/// assert_eq!(num_trailing, 16);
2092
2112
/// ```
2113
+ #[ cfg( not( bootstrap) ) ]
2114
+ #[ rustc_const_stable( feature = "const_cttz" , since = "1.40.0" ) ]
2115
+ #[ rustc_safe_intrinsic]
2116
+ #[ rustc_nounwind]
2117
+ pub fn cttz < T : Copy > ( x : T ) -> u32 ;
2118
+
2119
+ #[ cfg( bootstrap) ]
2093
2120
#[ rustc_const_stable( feature = "const_cttz" , since = "1.40.0" ) ]
2094
2121
#[ rustc_safe_intrinsic]
2095
2122
#[ rustc_nounwind]
@@ -2112,6 +2139,12 @@ extern "rust-intrinsic" {
2112
2139
/// let num_trailing = unsafe { cttz_nonzero(x) };
2113
2140
/// assert_eq!(num_trailing, 3);
2114
2141
/// ```
2142
+ #[ cfg( not( bootstrap) ) ]
2143
+ #[ rustc_const_stable( feature = "const_cttz_nonzero" , since = "1.53.0" ) ]
2144
+ #[ rustc_nounwind]
2145
+ pub fn cttz_nonzero < T : Copy > ( x : T ) -> u32 ;
2146
+
2147
+ #[ cfg( bootstrap) ]
2115
2148
#[ rustc_const_stable( feature = "const_cttz_nonzero" , since = "1.53.0" ) ]
2116
2149
#[ rustc_nounwind]
2117
2150
pub fn cttz_nonzero < T : Copy > ( x : T ) -> T ;
@@ -2288,6 +2321,13 @@ extern "rust-intrinsic" {
2288
2321
/// The stabilized versions of this intrinsic are available on the integer
2289
2322
/// primitives via the `rotate_left` method. For example,
2290
2323
/// [`u32::rotate_left`]
2324
+ #[ cfg( not( bootstrap) ) ]
2325
+ #[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
2326
+ #[ rustc_safe_intrinsic]
2327
+ #[ rustc_nounwind]
2328
+ pub fn rotate_left < T : Copy > ( x : T , shift : u32 ) -> T ;
2329
+
2330
+ #[ cfg( bootstrap) ]
2291
2331
#[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
2292
2332
#[ rustc_safe_intrinsic]
2293
2333
#[ rustc_nounwind]
@@ -2303,6 +2343,13 @@ extern "rust-intrinsic" {
2303
2343
/// The stabilized versions of this intrinsic are available on the integer
2304
2344
/// primitives via the `rotate_right` method. For example,
2305
2345
/// [`u32::rotate_right`]
2346
+ #[ cfg( not( bootstrap) ) ]
2347
+ #[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
2348
+ #[ rustc_safe_intrinsic]
2349
+ #[ rustc_nounwind]
2350
+ pub fn rotate_right < T : Copy > ( x : T , shift : u32 ) -> T ;
2351
+
2352
+ #[ cfg( bootstrap) ]
2306
2353
#[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
2307
2354
#[ rustc_safe_intrinsic]
2308
2355
#[ rustc_nounwind]
0 commit comments