We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c735a28 commit 9f2f878Copy full SHA for 9f2f878
src/i16x16_.rs
@@ -294,9 +294,10 @@ impl i16x16 {
294
#[must_use]
295
pub fn move_mask(self) -> i32 {
296
pick! {
297
- if #[cfg(target_feature="avx2")] {
298
- (move_mask_i8_m256i(pack_i16_to_i8_m256i(self.avx2,shuffle_ai_i64_all_m256i::<0b01_00_11_10>(self.avx2))) & 0xffff) as i32
299
- } else {
+ if #[cfg(target_feature="sse2")] {
+ let [a,b] = cast::<_,[m128i;2]>(self);
+ move_mask_i8_m128i( pack_i16_to_i8_m128i(a,b))
300
+ } else {
301
self.a.move_mask() | (self.b.move_mask() << 8)
302
}
303
0 commit comments