Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to intra-doc links for /library/core/src/intrinsics.rs #75705

Merged
merged 17 commits into from
Aug 22, 2020
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 @@ -701,39 +701,39 @@ extern "rust-intrinsic" {
/// `std::sync::atomic` unsigned integer types via the `fetch_min` method by passing
/// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
/// [`AtomicU32::fetch_min`](crate::sync::atomic::AtomicU32::fetch_min).
jyn514 marked this conversation as resolved.
Show resolved Hide resolved
pub fn atomic_umin<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Acquire)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
/// [`AtomicU32::fetch_min`](crate::sync::atomic::AtomicU32::fetch_min).
pub fn atomic_umin_acq<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Release)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
/// [`AtomicU32::fetch_min`](crate::sync::atomic::AtomicU32::fetch_min).
pub fn atomic_umin_rel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::AcqRel)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
/// [`AtomicU32::fetch_min`](crate::sync::atomic::AtomicU32::fetch_min).
pub fn atomic_umin_acqrel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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::Relaxed`](crate::sync::atomic::Ordering::Relaxed)
/// as the `order`. For example,
/// [`AtomicU32::fetch_min`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_min).
/// [`AtomicU32::fetch_min`](crate::sync::atomic::AtomicU32::fetch_min).
pub fn atomic_umin_relaxed<T: Copy>(dst: *mut T, src: T) -> T;

/// Maximum with the current value using an unsigned comparison.
Expand All @@ -742,39 +742,39 @@ extern "rust-intrinsic" {
/// `std::sync::atomic` unsigned integer types via the `fetch_max` method by passing
/// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
/// [`AtomicU32::fetch_max`](crate::sync::atomic::AtomicU32::fetch_max).
pub fn atomic_umax<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Acquire)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
/// [`AtomicU32::fetch_max`](crate::sync::atomic::AtomicU32::fetch_max).
pub fn atomic_umax_acq<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::Release)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
/// [`AtomicU32::fetch_max`](crate::sync::atomic::AtomicU32::fetch_max).
pub fn atomic_umax_rel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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`](crate::sync::atomic::Ordering::AcqRel)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
/// [`AtomicU32::fetch_max`](crate::sync::atomic::AtomicU32::fetch_max).
pub fn atomic_umax_acqrel<T: Copy>(dst: *mut T, src: T) -> T;
/// 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::Relaxed`](crate::sync::atomic::Ordering::Relaxed)
/// as the `order`. For example,
/// [`AtomicU32::fetch_max`](../../std/sync/atomic/struct.AtomicU32.html#method.fetch_max).
/// [`AtomicU32::fetch_max`](crate::sync::atomic::AtomicU32::fetch_max).
pub fn atomic_umax_relaxed<T: Copy>(dst: *mut T, src: T) -> T;

/// The `prefetch` intrinsic is a hint to the code generator to insert a prefetch instruction
Expand Down