Lines Matching refs:cpu_features
24 pub(super) fn new(h_be: Block, cpu_features: cpu::Features) -> Self { in new()
32 match detect_implementation(cpu_features) { in new()
34 Implementation::CLMUL if has_avx_movbe(cpu_features) => { in new()
80 cpu_features: cpu::Features, field
84 pub(crate) fn new(key: &Key, aad: Aad<&[u8]>, cpu_features: cpu::Features) -> Self { in new()
91 cpu_features, in new()
120 match detect_implementation(self.cpu_features) { in update_blocks()
122 Implementation::CLMUL if has_avx_movbe(self.cpu_features) => { in update_blocks()
187 match detect_implementation(self.cpu_features) { in update_block()
228 pub(super) fn is_avx2(&self, cpu_features: cpu::Features) -> bool { in is_avx2()
229 match detect_implementation(cpu_features) { in is_avx2()
230 Implementation::CLMUL => has_avx_movbe(self.cpu_features), in is_avx2()
296 fn detect_implementation(cpu_features: cpu::Features) -> Implementation { in detect_implementation()
304 let _cpu_features = cpu_features; in detect_implementation()
313 if (cpu::intel::FXSR.available(cpu_features) in detect_implementation()
314 && cpu::intel::PCLMULQDQ.available(cpu_features)) in detect_implementation()
315 || cpu::arm::PMULL.available(cpu_features) in detect_implementation()
323 if cpu::arm::NEON.available(cpu_features) { in detect_implementation()
338 fn has_avx_movbe(cpu_features: cpu::Features) -> bool { in has_avx_movbe()
339 cpu::intel::AVX.available(cpu_features) && cpu::intel::MOVBE.available(cpu_features) in has_avx_movbe()