diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-16 21:27:23 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-16 21:27:23 +0100 |
commit | e688c09d6a0e75ae559ab79a331963f6f2ebf1b6 (patch) | |
tree | c015f683723fcf283f551b20561501f049f81c66 /src | |
parent | db198e156efe3fa09e297fa74153e8dc8363bda7 (diff) |
chacha20poly1305: sse/ymm should be implicit
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/chacha20poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/chacha20poly1305.c b/src/crypto/chacha20poly1305.c index 6926f2a..cc1af39 100644 --- a/src/crypto/chacha20poly1305.c +++ b/src/crypto/chacha20poly1305.c @@ -34,7 +34,7 @@ void chacha20poly1305_init(void) { chacha20poly1305_use_sse2 = boot_cpu_has(X86_FEATURE_XMM2); chacha20poly1305_use_ssse3 = boot_cpu_has(X86_FEATURE_SSSE3); - chacha20poly1305_use_avx2 = boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_AVX2) && cpu_has_xfeatures(XFEATURE_MASK_SSE | XFEATURE_MASK_YMM, NULL); + chacha20poly1305_use_avx2 = boot_cpu_has(X86_FEATURE_AVX) && boot_cpu_has(X86_FEATURE_AVX2); } #else void chacha20poly1305_init(void) { } |