Skip to content

Commit

Permalink
simd_scatter: mention left-to-right order
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 10, 2024
1 parent 5219af6 commit aa64c73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/core/src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ extern "platform-intrinsic" {
/// corresponding value in `val` to the pointer.
/// Otherwise if the corresponding value in `mask` is `0`, do nothing.
///
/// The stores happen in left-to-right order.
/// (This is relevant in case two of the stores overlap.)
///
/// # Safety
/// Unmasked values in `T` must be writeable as if by `<ptr>::write` (e.g. aligned to the element
/// type).
Expand Down

0 comments on commit aa64c73

Please sign in to comment.