Skip to content

Commit 6711e7b

Browse files
committed
aes_gcm/x86_64: Tweak CPU feature parameter for clmulavxmovbe.
Switch to the preferred style of indicating CPU features for a function when we don't need a named type for some specific reason.
1 parent 5473ab1 commit 6711e7b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/aead/gcm/clmulavxmovbe.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@
1515
#![cfg(target_arch = "x86_64")]
1616

1717
use super::{HTable, KeyValue, UpdateBlock, UpdateBlocks, Xi, BLOCK_LEN};
18-
use crate::{cpu, polyfill::slice::AsChunks};
19-
20-
pub(in super::super) type RequiredCpuFeatures =
21-
(cpu::intel::ClMul, cpu::intel::Avx, cpu::intel::Movbe);
18+
use crate::{cpu::intel, polyfill::slice::AsChunks};
2219

2320
#[derive(Clone)]
2421
pub struct Key {
2522
h_table: HTable,
2623
}
2724

2825
impl Key {
29-
pub(in super::super) fn new(value: KeyValue, _cpu: RequiredCpuFeatures) -> Self {
26+
#[inline(never)]
27+
pub(in super::super) fn new(
28+
value: KeyValue,
29+
_required_cpu_features: (intel::ClMul, intel::Avx, intel::Movbe),
30+
) -> Self {
3031
Self {
3132
h_table: unsafe { htable_new!(gcm_init_avx, value) },
3233
}

0 commit comments

Comments
 (0)