Lines Matching full:arch
2 use core::arch::x86 as arch;
4 use core::arch::x86_64 as arch;
70 unsafe fn debug(s: &str, a: arch::__m128i) -> arch::__m128i { in debug()
73 a: arch::__m128i, in debug()
87 unsafe fn debug(_s: &str, a: arch::__m128i) -> arch::__m128i { in debug()
107 x3 = arch::_mm_xor_si128(x3, arch::_mm_cvtsi32_si128(!crc as i32)); in calculate()
109 let k1k2 = arch::_mm_set_epi64x(K2, K1); in calculate()
117 let k3k4 = arch::_mm_set_epi64x(K4, K3); in calculate()
148 let x = arch::_mm_xor_si128( in calculate()
149 arch::_mm_clmulepi64_si128(x, k3k4, 0x10), in calculate()
150 arch::_mm_srli_si128(x, 8), in calculate()
152 let x = arch::_mm_xor_si128( in calculate()
153 arch::_mm_clmulepi64_si128( in calculate()
154 arch::_mm_and_si128(x, arch::_mm_set_epi32(0, 0, 0, !0)), in calculate()
155 arch::_mm_set_epi64x(0, K5), in calculate()
158 arch::_mm_srli_si128(x, 4), in calculate()
165 let pu = arch::_mm_set_epi64x(U_PRIME, P_X); in calculate()
168 let t1 = arch::_mm_clmulepi64_si128( in calculate()
169 arch::_mm_and_si128(x, arch::_mm_set_epi32(0, 0, 0, !0)), in calculate()
174 let t2 = arch::_mm_clmulepi64_si128( in calculate()
175 arch::_mm_and_si128(t1, arch::_mm_set_epi32(0, 0, 0, !0)), in calculate()
183 let c = arch::_mm_extract_epi32(arch::_mm_xor_si128(x, t2), 1) as u32; in calculate()
192 unsafe fn reduce128(a: arch::__m128i, b: arch::__m128i, keys: arch::__m128i) -> arch::__m128i { in reduce128()
193 let t1 = arch::_mm_clmulepi64_si128(a, keys, 0x00); in reduce128()
194 let t2 = arch::_mm_clmulepi64_si128(a, keys, 0x11); in reduce128()
195 arch::_mm_xor_si128(arch::_mm_xor_si128(b, t1), t2) in reduce128()
198 unsafe fn get(a: &mut &[u8]) -> arch::__m128i { in get()
200 let r = arch::_mm_loadu_si128(a.as_ptr() as *const arch::__m128i); in get() constant