File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -132,9 +132,10 @@ extern "platform-intrinsic" {
132
132
// `fn simd_bitmask(vector) -> unsigned integer` takes a vector of integers and
133
133
// returns either an unsigned integer or array of `u8`.
134
134
// Every element in the vector becomes a single bit in the returned bitmask.
135
- // If the vector has less than 8 lanes, a u8 is returned with zeroed trailing bits.
136
135
// The bit order of the result depends on the byte endianness. LSB-first for little
137
136
// endian and MSB-first for big endian.
137
+ // If the vector has less than 8 lanes, the mask lives in the least-significant bits
138
+ // (e.g., [true, false] becomes `0b01` on little endian and `0b10` on big endian).
138
139
//
139
140
// UB if called on a vector with values other than 0 and -1.
140
141
#[ allow( unused) ]
You can’t perform that action at this time.
0 commit comments