From fc0837cfa588e490531a697402dec7b7b83cec52 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 11 Jun 2021 09:31:44 +0900 Subject: [PATCH] Stabilize `simd_x86_bittest` feature (#1180) --- library/stdarch/crates/core_arch/src/x86/bt.rs | 8 ++++---- library/stdarch/crates/core_arch/src/x86_64/bt.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/library/stdarch/crates/core_arch/src/x86/bt.rs b/library/stdarch/crates/core_arch/src/x86/bt.rs index 278ddf954335..240f691ff135 100644 --- a/library/stdarch/crates/core_arch/src/x86/bt.rs +++ b/library/stdarch/crates/core_arch/src/x86/bt.rs @@ -20,7 +20,7 @@ macro_rules! bt { /// Returns the bit in position `b` of the memory addressed by `p`. #[inline] #[cfg_attr(test, assert_instr(bt))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittest(p: *const i32, b: i32) -> u8 { let r: u8; asm!( @@ -37,7 +37,7 @@ pub unsafe fn _bittest(p: *const i32, b: i32) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then sets the bit to `1`. #[inline] #[cfg_attr(test, assert_instr(bts))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandset(p: *mut i32, b: i32) -> u8 { let r: u8; asm!( @@ -54,7 +54,7 @@ pub unsafe fn _bittestandset(p: *mut i32, b: i32) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then resets that bit to `0`. #[inline] #[cfg_attr(test, assert_instr(btr))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandreset(p: *mut i32, b: i32) -> u8 { let r: u8; asm!( @@ -71,7 +71,7 @@ pub unsafe fn _bittestandreset(p: *mut i32, b: i32) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then inverts that bit. #[inline] #[cfg_attr(test, assert_instr(btc))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandcomplement(p: *mut i32, b: i32) -> u8 { let r: u8; asm!( diff --git a/library/stdarch/crates/core_arch/src/x86_64/bt.rs b/library/stdarch/crates/core_arch/src/x86_64/bt.rs index 6e8579fa252d..5e087fcc6db0 100644 --- a/library/stdarch/crates/core_arch/src/x86_64/bt.rs +++ b/library/stdarch/crates/core_arch/src/x86_64/bt.rs @@ -20,7 +20,7 @@ macro_rules! bt { /// Returns the bit in position `b` of the memory addressed by `p`. #[inline] #[cfg_attr(test, assert_instr(bt))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittest64(p: *const i64, b: i64) -> u8 { let r: u8; asm!( @@ -37,7 +37,7 @@ pub unsafe fn _bittest64(p: *const i64, b: i64) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then sets the bit to `1`. #[inline] #[cfg_attr(test, assert_instr(bts))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandset64(p: *mut i64, b: i64) -> u8 { let r: u8; asm!( @@ -54,7 +54,7 @@ pub unsafe fn _bittestandset64(p: *mut i64, b: i64) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then resets that bit to `0`. #[inline] #[cfg_attr(test, assert_instr(btr))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandreset64(p: *mut i64, b: i64) -> u8 { let r: u8; asm!( @@ -71,7 +71,7 @@ pub unsafe fn _bittestandreset64(p: *mut i64, b: i64) -> u8 { /// Returns the bit in position `b` of the memory addressed by `p`, then inverts that bit. #[inline] #[cfg_attr(test, assert_instr(btc))] -#[unstable(feature = "simd_x86_bittest", issue = "59414")] +#[stable(feature = "simd_x86_bittest", since = "1.54.0")] pub unsafe fn _bittestandcomplement64(p: *mut i64, b: i64) -> u8 { let r: u8; asm!(