Skip to content

Commit 02afa1c

Browse files
p32bloBurntSushi
authored andcommitted
Avoid using simd_cast directly
1 parent 8c35c4f commit 02afa1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/x86/sse41.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ pub unsafe fn _mm_cmpeq_epi64(a: i64x2, b: i64x2) -> i64x2 {
265265
#[target_feature = "+sse4.1"]
266266
#[cfg_attr(test, assert_instr(pmovsxbw))]
267267
pub unsafe fn _mm_cvtepi8_epi16(a: i8x16) -> i16x8 {
268-
simd_cast::<::v64::i8x8, _>(simd_shuffle8(a, a, [0, 1, 2, 3, 4, 5, 6, 7]))
268+
simd_shuffle8::<_, ::v64::i8x8>(a, a, [0, 1, 2, 3, 4, 5, 6, 7]).as_i16x8()
269269
}
270270

271271
/// Sign extend packed 8-bit integers in `a` to packed 32-bit integers

0 commit comments

Comments
 (0)