diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-18 03:23:56 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-09-18 04:21:16 +0200 |
commit | 39ccd042f98e3a151fa74b8d0351899affecf6d4 (patch) | |
tree | b2f7ce77a84f25c1337b9aab1cdee0c7a99ba7a4 /src/crypto/zinc | |
parent | 9a2f6963065576df10aff603411ecc96b3981995 (diff) |
chacha20-x86_64: use correct cut off for avx512-vl
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/crypto/zinc')
-rw-r--r-- | src/crypto/zinc/chacha20/chacha20-x86_64-glue.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h index 912bded..d2b1c4b 100644 --- a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h +++ b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.h @@ -69,7 +69,7 @@ static inline bool chacha20_arch(u8 *dst, const u8 *src, const size_t len, chacha20_avx512(dst, src, len, key, counter); return true; } - if (chacha20_use_avx512vl && len >= CHACHA20_BLOCK_SIZE * 8) { + if (chacha20_use_avx512vl && len >= CHACHA20_BLOCK_SIZE * 4) { chacha20_avx512vl(dst, src, len, key, counter); return true; } |