Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions library/core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,39 +619,39 @@ extern "rust-intrinsic" {
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
/// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
/// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment about use crate::sync::atomic::AtomicI32;

pub fn atomic_max<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Acquire)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
/// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max).
pub fn atomic_max_acq<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Release)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
/// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max).
pub fn atomic_max_rel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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::AcqRel`](crate::sync::atomic::Ordering::AcqRel)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
/// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max).
pub fn atomic_max_acqrel<T: Copy>(dst: *mut T, src: T) -> T;
/// Maximum with the current value.
///
/// The stabilized version of this intrinsic is available on the
/// `std::sync::atomic` signed integer types via the `fetch_max` method by passing
/// [`Ordering::Relaxed`](crate::sync::atomic::Ordering::Relaxed)
/// as the `order`. For example,
/// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max).
/// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max).
pub fn atomic_max_relaxed<T: Copy>(dst: *mut T, src: T) -> T;

/// Minimum with the current value using a signed comparison.
Expand All @@ -660,39 +660,39 @@ extern "rust-intrinsic" {
/// `std::sync::atomic` signed integer types via the `fetch_min` method by passing
/// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
/// [`AtomicI32::fetch_min`](crate::sync::atomic::AtomicI32::fetch_min).
pub fn atomic_min<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Acquire)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
/// [`AtomicI32::fetch_min`](crate::sync::atomic::AtomicI32::fetch_min).
pub fn atomic_min_acq<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Release)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
/// [`AtomicI32::fetch_min`](crate::sync::atomic::AtomicI32::fetch_min).
pub fn atomic_min_rel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::AcqRel)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
/// [`AtomicI32::fetch_min`](crate::sync::atomic::AtomicI32::fetch_min).
pub fn atomic_min_acqrel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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::Relaxed`](crate::sync::atomic::Ordering::Relaxed)
/// as the `order`. For example,
/// [`AtomicI32::fetch_min`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_min).
/// [`AtomicI32::fetch_min`](crate::sync::atomic::AtomicI32::fetch_min).
pub fn atomic_min_relaxed<T: Copy>(dst: *mut T, src: T) -> T;

/// Minimum with the current value using an unsigned comparison.
Expand Down