/// `std::sync::atomic` types via the `compare_exchange` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` types via the `compare_exchange` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_acq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_rel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_acqrel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` types via the `compare_exchange` method by passing
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_relaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_failacq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange).
+ /// [`AtomicBool::compare_exchange`][compare_exchange].
+ ///
+ /// [compare_exchange]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange
pub fn atomic_cxchg_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_acq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_rel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_acqrel<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` types via the `compare_exchange_weak` method by passing
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as both the `success` and `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_relaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_failacq<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_acq_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Stores a value if the current value is the same as the `old` value.
/// The stabilized version of this intrinsic is available on the
/// as the `success` and
/// [`Ordering::Relaxed`](../../std/sync/atomic/enum.Ordering.html)
/// as the `failure` parameters. For example,
- /// [`AtomicBool::compare_exchange_weak`]
- /// (../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak).
+ /// [`AtomicBool::compare_exchange_weak`][cew].
+ ///
+ /// [cew]: ../../std/sync/atomic/struct.AtomicBool.html#method.compare_exchange_weak
pub fn atomic_cxchgweak_acqrel_failrelaxed<T>(dst: *mut T, old: T, src: T) -> (T, bool);
/// Loads the current value of the pointer.
#[cfg(not(stage0))]
pub fn unchecked_shr<T>(x: T, y: T) -> T;
- /// Returns (a + b) mod 2^N, where N is the width of T in bits.
+ /// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
/// The stabilized versions of this intrinsic are available on the integer
/// primitives via the `wrapping_add` method. For example,
/// [`std::u32::wrapping_add`](../../std/primitive.u32.html#method.wrapping_add)
pub fn overflowing_add<T>(a: T, b: T) -> T;
- /// Returns (a - b) mod 2^N, where N is the width of T in bits.
+ /// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
/// The stabilized versions of this intrinsic are available on the integer
/// primitives via the `wrapping_sub` method. For example,
/// [`std::u32::wrapping_sub`](../../std/primitive.u32.html#method.wrapping_sub)
pub fn overflowing_sub<T>(a: T, b: T) -> T;
- /// Returns (a * b) mod 2^N, where N is the width of T in bits.
+ /// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
/// The stabilized versions of this intrinsic are available on the integer
/// primitives via the `wrapping_mul` method. For example,
/// [`std::u32::wrapping_mul`](../../std/primitive.u32.html#method.wrapping_mul)