just load 64 bits with _mm_loadl_epi64

This commit is contained in:
Brian Armstrong 2018-10-28 13:14:42 -07:00 committed by gnzlbg
parent 294056c160
commit 4a0ae6e8cb

View file

@ -1145,7 +1145,7 @@ pub unsafe fn _mm_setzero_si128() -> __m128i {
)]
#[stable(feature = "simd_x86", since = "1.27.0")]
pub unsafe fn _mm_loadl_epi64(mem_addr: *const __m128i) -> __m128i {
_mm_set_epi64x(0, simd_extract(ptr::read_unaligned(mem_addr).as_i64x2(), 0))
_mm_set_epi64x(0, ptr::read_unaligned(mem_addr as *const i64))
}
/// Load 128-bits of integer data from memory into a new vector.