Skip to content

Commit

Permalink
Merge pull request #378 from RalfJung/simd_bitmask
Browse files Browse the repository at this point in the history
fix simd_bitmask docs
  • Loading branch information
calebzulawski authored Dec 3, 2023
2 parents e0e9a45 + 81af496 commit 80ff6a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core_simd/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@ extern "platform-intrinsic" {
// `fn simd_bitmask(vector) -> unsigned integer` takes a vector of integers and
// returns either an unsigned integer or array of `u8`.
// Every element in the vector becomes a single bit in the returned bitmask.
// If the vector has less than 8 lanes, a u8 is returned with zeroed trailing bits.
// The bit order of the result depends on the byte endianness. LSB-first for little
// endian and MSB-first for big endian.
// If the vector has less than 8 lanes, the mask lives in the least-significant bits
// (e.g., [true, false] becomes `0b01` on little endian and `0b10` on big endian).
//
// UB if called on a vector with values other than 0 and -1.
#[allow(unused)]
Expand Down

0 comments on commit 80ff6a5

Please sign in to comment.