Skip to content

Commit

Permalink
Add documentation for the volatile_read and volatile_write intrin…
Browse files Browse the repository at this point in the history
…sics

Part of #34338
  • Loading branch information
wesleywiser committed Nov 9, 2016
1 parent bc4fc65 commit a3f75fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libcore/intrinsics.rs
Expand Up @@ -1027,8 +1027,12 @@ extern "rust-intrinsic" {
pub fn volatile_set_memory<T>(dst: *mut T, val: u8, count: usize);

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

/// Returns the square root of an `f32`
Expand Down

0 comments on commit a3f75fb

Please sign in to comment.