Skip to content

Commit 41495c9

Browse files
committed
Use _mm_set1_epi64x to harmonize loadu_si implementations
1 parent 9528230 commit 41495c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Vector for __m64i {
137137
#[inline]
138138
#[target_feature(enable = "avx2")]
139139
unsafe fn loadu_si(a: *const u8) -> Self {
140-
__m64i(_mm_set_epi64x(0, std::ptr::read_unaligned(a as *const i64)))
140+
__m64i(_mm_set1_epi64x(std::ptr::read_unaligned(a as *const i64)))
141141
}
142142

143143
#[inline]

0 commit comments

Comments
 (0)