Stabilize simd_x86_bittest feature (#1180)
This commit is contained in:
parent
79140b43ea
commit
fc0837cfa5
2 changed files with 8 additions and 8 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue