Skip to content

Commit a3f75fb

Browse files
committed
Add documentation for the volatile_read and volatile_write intrinsics
Part of #34338
1 parent bc4fc65 commit a3f75fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/intrinsics.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,12 @@ extern "rust-intrinsic" {
10271027
pub fn volatile_set_memory<T>(dst: *mut T, val: u8, count: usize);
10281028

10291029
/// Perform a volatile load from the `src` pointer.
1030+
/// The stabilized version of this intrinsic is
1031+
/// [`std::ptr::read_volatile`](../../std/ptr/fn.read_volatile.html).
10301032
pub fn volatile_load<T>(src: *const T) -> T;
10311033
/// Perform a volatile store to the `dst` pointer.
1034+
/// The stabilized version of this intrinsic is
1035+
/// [`std::ptr::write_volatile`](../../std/ptr/fn.write_volatile.html).
10321036
pub fn volatile_store<T>(dst: *mut T, val: T);
10331037

10341038
/// Returns the square root of an `f32`

0 commit comments

Comments
 (0)