Skip to content
Snippets Groups Projects
Commit 4812968d authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

Fix an ifdef for AMD Epyc 7003

parent 059de5fb
No related merge requests found
...@@ -354,7 +354,7 @@ QUALIFIERS const std::array<__m256i,11> & aesni_roundkeys(const __m256i & k256) ...@@ -354,7 +354,7 @@ QUALIFIERS const std::array<__m256i,11> & aesni_roundkeys(const __m256i & k256)
} }
QUALIFIERS __m256i aesni1xm128i(const __m256i & in, const __m256i & k0) { QUALIFIERS __m256i aesni1xm128i(const __m256i & in, const __m256i & k0) {
#if defined(__VAES__) && defined(__AVX512VL__) #if defined(__VAES__)
auto k = aesni_roundkeys(k0); auto k = aesni_roundkeys(k0);
__m256i x = _mm256_xor_si256(k[0], in); __m256i x = _mm256_xor_si256(k[0], in);
x = _mm256_aesenc_epi128(x, k[1]); x = _mm256_aesenc_epi128(x, k[1]);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment