From aa64c73f1413fcf5277075774022d2da44840ae5 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Fri, 29 Dec 2023 00:09:11 +0100 Subject: [PATCH] simd_scatter: mention left-to-right order --- library/core/src/intrinsics/simd.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/core/src/intrinsics/simd.rs b/library/core/src/intrinsics/simd.rs index d52f04bf3e0..97eca28ec05 100644 --- a/library/core/src/intrinsics/simd.rs +++ b/library/core/src/intrinsics/simd.rs @@ -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 `::write` (e.g. aligned to the element /// type).