Skip to content

Commit

Permalink
Fix mistake in atomic comparaison docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Feb 11, 2020
1 parent 842448d commit 768470b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/libcore/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,31 +612,31 @@ extern "rust-intrinsic" {
/// [`AtomicBool::fetch_xor`](../../std/sync/atomic/struct.AtomicBool.html#method.fetch_xor).
pub fn atomic_xor_relaxed<T>(dst: *mut T, src: T) -> T;

/// Maximum with the current value using a sized comparison.
/// Maximum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
pub fn atomic_max<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using a sized comparison.
/// Maximum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
pub fn atomic_max_acq<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using a sized comparison.
/// Maximum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
pub fn atomic_max_rel<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using a sized comparison.
/// Maximum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
Expand All @@ -653,39 +653,39 @@ extern "rust-intrinsic" {
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
pub fn atomic_max_relaxed<T>(dst: *mut T, src: T) -> T;

/// Minimum with the current value using a sized comparison.
/// Minimum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
pub fn atomic_min<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using a sized comparison.
/// Minimum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
pub fn atomic_min_acq<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using a sized comparison.
/// Minimum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
pub fn atomic_min_rel<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using a sized comparison.
/// Minimum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
pub fn atomic_min_acqrel<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using a sized comparison.
/// Minimum with the current value using a signed comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
Expand All @@ -694,39 +694,39 @@ extern "rust-intrinsic" {
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
pub fn atomic_min_relaxed<T>(dst: *mut T, src: T) -> T;

/// Minimum with the current value using an unsized comparison.
/// Minimum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
pub fn atomic_umin<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using an unsized comparison.
/// Minimum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
pub fn atomic_umin_acq<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using an unsized comparison.
/// Minimum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
pub fn atomic_umin_rel<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using an unsized comparison.
/// Minimum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
pub fn atomic_umin_acqrel<T>(dst: *mut T, src: T) -> T;
/// Minimum with the current value using an unsized comparison.
/// Minimum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
Expand All @@ -735,39 +735,39 @@ extern "rust-intrinsic" {
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
pub fn atomic_umin_relaxed<T>(dst: *mut T, src: T) -> T;

/// Maximum with the current value using an unsized comparison.
/// Maximum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
/// [`Ordering::SeqCst`](../../std/sync/atomic/enum.Ordering.html#variant.SeqCst)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
pub fn atomic_umax<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using an unsized comparison.
/// Maximum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
/// [`Ordering::Acquire`](../../std/sync/atomic/enum.Ordering.html#variant.Acquire)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
pub fn atomic_umax_acq<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using an unsized comparison.
/// Maximum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
/// [`Ordering::Release`](../../std/sync/atomic/enum.Ordering.html#variant.Release)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
pub fn atomic_umax_rel<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using an unsized comparison.
/// Maximum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
/// [`Ordering::AcqRel`](../../std/sync/atomic/enum.Ordering.html#variant.AcqRel)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
pub fn atomic_umax_acqrel<T>(dst: *mut T, src: T) -> T;
/// Maximum with the current value using an unsized comparison.
/// Maximum with the current value using an unsigned comparison.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
Expand Down

0 comments on commit 768470b

Please sign in to comment.