@@ -1987,6 +1987,13 @@ extern "rust-intrinsic" {
19871987 /// The stabilized versions of this intrinsic are available on the integer
19881988 /// primitives via the `count_ones` method. For example,
19891989 /// [`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) ]
19901997 #[ rustc_const_stable( feature = "const_ctpop" , since = "1.40.0" ) ]
19911998 #[ rustc_safe_intrinsic]
19921999 #[ rustc_nounwind]
@@ -2028,6 +2035,13 @@ extern "rust-intrinsic" {
20282035 /// let num_leading = ctlz(x);
20292036 /// assert_eq!(num_leading, 16);
20302037 /// ```
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) ]
20312045 #[ rustc_const_stable( feature = "const_ctlz" , since = "1.40.0" ) ]
20322046 #[ rustc_safe_intrinsic]
20332047 #[ rustc_nounwind]
@@ -2050,6 +2064,12 @@ extern "rust-intrinsic" {
20502064 /// let num_leading = unsafe { ctlz_nonzero(x) };
20512065 /// assert_eq!(num_leading, 3);
20522066 /// ```
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) ]
20532073 #[ rustc_const_stable( feature = "constctlz" , since = "1.50.0" ) ]
20542074 #[ rustc_nounwind]
20552075 pub fn ctlz_nonzero < T : Copy > ( x : T ) -> T ;
@@ -2090,6 +2110,13 @@ extern "rust-intrinsic" {
20902110 /// let num_trailing = cttz(x);
20912111 /// assert_eq!(num_trailing, 16);
20922112 /// ```
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) ]
20932120 #[ rustc_const_stable( feature = "const_cttz" , since = "1.40.0" ) ]
20942121 #[ rustc_safe_intrinsic]
20952122 #[ rustc_nounwind]
@@ -2112,6 +2139,12 @@ extern "rust-intrinsic" {
21122139 /// let num_trailing = unsafe { cttz_nonzero(x) };
21132140 /// assert_eq!(num_trailing, 3);
21142141 /// ```
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) ]
21152148 #[ rustc_const_stable( feature = "const_cttz_nonzero" , since = "1.53.0" ) ]
21162149 #[ rustc_nounwind]
21172150 pub fn cttz_nonzero < T : Copy > ( x : T ) -> T ;
@@ -2288,6 +2321,13 @@ extern "rust-intrinsic" {
22882321 /// The stabilized versions of this intrinsic are available on the integer
22892322 /// primitives via the `rotate_left` method. For example,
22902323 /// [`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) ]
22912331 #[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
22922332 #[ rustc_safe_intrinsic]
22932333 #[ rustc_nounwind]
@@ -2303,6 +2343,13 @@ extern "rust-intrinsic" {
23032343 /// The stabilized versions of this intrinsic are available on the integer
23042344 /// primitives via the `rotate_right` method. For example,
23052345 /// [`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) ]
23062353 #[ rustc_const_stable( feature = "const_int_rotate" , since = "1.40.0" ) ]
23072354 #[ rustc_safe_intrinsic]
23082355 #[ rustc_nounwind]
0 commit comments