Skip to content

Commit d030301

Browse files
committed
Remove special case for length-1 vectors
1 parent c739af3 commit d030301

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/core_simd/src/swizzle.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ where
362362
const INDEX: [Which; LANES] = deinterleave::<LANES>(true);
363363
}
364364

365-
if LANES == 1 {
366-
(self, other)
367-
} else {
368-
(Even::swizzle2(self, other), Odd::swizzle2(self, other))
369-
}
365+
(Even::swizzle2(self, other), Odd::swizzle2(self, other))
370366
}
371367
}

0 commit comments

Comments
 (0)