We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65ba6a1 commit 1a600e8Copy full SHA for 1a600e8
src/lib/gaussian/sse/horiz_one_approx.rs
@@ -34,6 +34,14 @@ use std::arch::x86::*;
34
#[cfg(target_arch = "x86_64")]
35
use std::arch::x86_64::*;
36
37
+#[inline]
38
+#[target_feature(enable = "sse4.1")]
39
+#[cfg(target_arch = "x86")]
40
+pub unsafe fn _mm_loadu_si16(mem_addr: *const u8) -> __m128i {
41
+ let item = (mem_addr as *const i16).read_unaligned();
42
+ _mm_set1_epi16(item)
43
+}
44
+
45
#[inline]
46
#[target_feature(enable = "sse4.1")]
47
pub unsafe fn _mm_sum_clamp(v: __m128i) -> i32 {
0 commit comments