Skip to content

Commit 3932d27

Browse files
brian-armstronggnzlbg
authored andcommitted
just load 64 bits with _mm_loadl_epi64
1 parent 635a995 commit 3932d27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coresimd/x86/sse2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ pub unsafe fn _mm_setzero_si128() -> __m128i {
11451145
)]
11461146
#[stable(feature = "simd_x86", since = "1.27.0")]
11471147
pub unsafe fn _mm_loadl_epi64(mem_addr: *const __m128i) -> __m128i {
1148-
_mm_set_epi64x(0, simd_extract(ptr::read_unaligned(mem_addr).as_i64x2(), 0))
1148+
_mm_set_epi64x(0, ptr::read_unaligned(mem_addr as *const i64))
11491149
}
11501150

11511151
/// Load 128-bits of integer data from memory into a new vector.

0 commit comments

Comments
 (0)