Skip to content

Commit 9f52bba

Browse files
committed
Use bitmask cast instead of a round trip to&from bitmask
1 parent 3f01eee commit 9f52bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_simd/src/vector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,5 +1156,5 @@ where
11561156
{
11571157
let index = lane_indices::<i8, N>();
11581158
let lt = index.simd_lt(Simd::splat(i8::try_from(len).unwrap_or(i8::MAX)));
1159-
Mask::<M, N>::from_bitmask_vector(lt.to_bitmask_vector())
1159+
lt.cast()
11601160
}

0 commit comments

Comments
 (0)