We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
volatile_read
volatile_write
1 parent bc4fc65 commit a3f75fbCopy full SHA for a3f75fb
src/libcore/intrinsics.rs
@@ -1027,8 +1027,12 @@ extern "rust-intrinsic" {
1027
pub fn volatile_set_memory<T>(dst: *mut T, val: u8, count: usize);
1028
1029
/// 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).
1032
pub fn volatile_load<T>(src: *const T) -> T;
1033
/// Perform a volatile store to the `dst` pointer.
1034
1035
+ /// [`std::ptr::write_volatile`](../../std/ptr/fn.write_volatile.html).
1036
pub fn volatile_store<T>(dst: *mut T, val: T);
1037
1038
/// Returns the square root of an `f32`
0 commit comments