Skip to content

Commit ba111bc

Browse files
committed
ML-KEM assembly: AVX512F and AVX512VBMI.
New assembly for ML-KEM for Intel x64 machines that support AVX512 extensions. Update how much is added to the stack of others.
1 parent e6d86b4 commit ba111bc

9 files changed

Lines changed: 58788 additions & 495 deletions

File tree

wolfcrypt/src/cpuid.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@
150150
if (cpuid_flag(7, 0, EBX, 29)) { new_cpuid_flags |= CPUID_SHA ; }
151151
if (cpuid_flag(7, 0, ECX, 9)) { new_cpuid_flags |= CPUID_VAES ; }
152152
if (cpuid_flag(7, 0, EBX, 16)) { new_cpuid_flags |= CPUID_AVX512; }
153+
if (cpuid_flag(7, 0, ECX, 1)) {
154+
new_cpuid_flags |= CPUID_AVX512_VBMI;
155+
}
153156
if (cpuid_is_intel()) { new_cpuid_flags |= CPUID_INTEL ; }
154157
if (cpuid_is_amd()) { new_cpuid_flags |= CPUID_AMD ; }
155158
(void)wolfSSL_Atomic_Uint_CompareExchange

0 commit comments

Comments
 (0)