Skip to content

Commit 3001c75

Browse files
authored
Fix the stabilized version for simd_x86_bittest (#1182)
1 parent 82106e8 commit 3001c75

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

crates/core_arch/src/x86/bt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_rules! bt {
2020
/// Returns the bit in position `b` of the memory addressed by `p`.
2121
#[inline]
2222
#[cfg_attr(test, assert_instr(bt))]
23-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
23+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
2424
pub unsafe fn _bittest(p: *const i32, b: i32) -> u8 {
2525
let r: u8;
2626
asm!(
@@ -37,7 +37,7 @@ pub unsafe fn _bittest(p: *const i32, b: i32) -> u8 {
3737
/// Returns the bit in position `b` of the memory addressed by `p`, then sets the bit to `1`.
3838
#[inline]
3939
#[cfg_attr(test, assert_instr(bts))]
40-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
40+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
4141
pub unsafe fn _bittestandset(p: *mut i32, b: i32) -> u8 {
4242
let r: u8;
4343
asm!(
@@ -54,7 +54,7 @@ pub unsafe fn _bittestandset(p: *mut i32, b: i32) -> u8 {
5454
/// Returns the bit in position `b` of the memory addressed by `p`, then resets that bit to `0`.
5555
#[inline]
5656
#[cfg_attr(test, assert_instr(btr))]
57-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
57+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
5858
pub unsafe fn _bittestandreset(p: *mut i32, b: i32) -> u8 {
5959
let r: u8;
6060
asm!(
@@ -71,7 +71,7 @@ pub unsafe fn _bittestandreset(p: *mut i32, b: i32) -> u8 {
7171
/// Returns the bit in position `b` of the memory addressed by `p`, then inverts that bit.
7272
#[inline]
7373
#[cfg_attr(test, assert_instr(btc))]
74-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
74+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
7575
pub unsafe fn _bittestandcomplement(p: *mut i32, b: i32) -> u8 {
7676
let r: u8;
7777
asm!(

crates/core_arch/src/x86_64/bt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ macro_rules! bt {
2020
/// Returns the bit in position `b` of the memory addressed by `p`.
2121
#[inline]
2222
#[cfg_attr(test, assert_instr(bt))]
23-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
23+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
2424
pub unsafe fn _bittest64(p: *const i64, b: i64) -> u8 {
2525
let r: u8;
2626
asm!(
@@ -37,7 +37,7 @@ pub unsafe fn _bittest64(p: *const i64, b: i64) -> u8 {
3737
/// Returns the bit in position `b` of the memory addressed by `p`, then sets the bit to `1`.
3838
#[inline]
3939
#[cfg_attr(test, assert_instr(bts))]
40-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
40+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
4141
pub unsafe fn _bittestandset64(p: *mut i64, b: i64) -> u8 {
4242
let r: u8;
4343
asm!(
@@ -54,7 +54,7 @@ pub unsafe fn _bittestandset64(p: *mut i64, b: i64) -> u8 {
5454
/// Returns the bit in position `b` of the memory addressed by `p`, then resets that bit to `0`.
5555
#[inline]
5656
#[cfg_attr(test, assert_instr(btr))]
57-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
57+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
5858
pub unsafe fn _bittestandreset64(p: *mut i64, b: i64) -> u8 {
5959
let r: u8;
6060
asm!(
@@ -71,7 +71,7 @@ pub unsafe fn _bittestandreset64(p: *mut i64, b: i64) -> u8 {
7171
/// Returns the bit in position `b` of the memory addressed by `p`, then inverts that bit.
7272
#[inline]
7373
#[cfg_attr(test, assert_instr(btc))]
74-
#[stable(feature = "simd_x86_bittest", since = "1.54.0")]
74+
#[stable(feature = "simd_x86_bittest", since = "1.55.0")]
7575
pub unsafe fn _bittestandcomplement64(p: *mut i64, b: i64) -> u8 {
7676
let r: u8;
7777
asm!(

0 commit comments

Comments
 (0)