Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
calebzulawski and RalfJung authored Dec 18, 2023
1 parent d190cd3 commit 2d921d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/core/src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ extern "platform-intrinsic" {
///
/// `V` must be a vector of integers with the same length as `T` (but any element size).
///
/// `idx` must be a constant.
/// `idx` must be a constant: either naming a constant item, or an inline
/// `const {}` expression.
///
/// For each pointer in `ptr`, if the corresponding value in `mask` is `!0`, read the pointer.
/// Otherwise if the corresponding value in `mask` is `0`, return the corresponding value from
Expand Down Expand Up @@ -333,7 +334,7 @@ extern "platform-intrinsic" {
/// * On little endian, the least significant bit corresponds to the first vector element.
/// * On big endian, the least significant bit corresponds to the last vector element.
///
/// For example, `[-1, 0, -1, -1]` packs to `0b1101` on little endian and `0b1011` on big
/// For example, `[!0, 0, !0, !0]` packs to `0b1101` on little endian and `0b1011` on big
/// endian.
///
/// # Safety
Expand Down

0 comments on commit 2d921d8

Please sign in to comment.