diff options
author | 2018-10-05 03:13:30 +0200 | |
---|---|---|
committer | 2018-10-06 02:19:47 +0200 | |
commit | 97e9a61fd5631985232923cff83b2ddc0ca476c0 (patch) | |
tree | b05245f7be911d091cc0f4e4b6bc3d04db385e9e /src/crypto/zinc/chacha20/chacha20-x86_64-glue.c | |
parent | global: rename include'd C files to be .c (diff) | |
download | wireguard-monolithic-historical-97e9a61fd5631985232923cff83b2ddc0ca476c0.tar.xz wireguard-monolithic-historical-97e9a61fd5631985232923cff83b2ddc0ca476c0.zip |
crypto: test all SIMD combinations
Diffstat (limited to 'src/crypto/zinc/chacha20/chacha20-x86_64-glue.c')
-rw-r--r-- | src/crypto/zinc/chacha20/chacha20-x86_64-glue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c index b89d5e1..f5a9c21 100644 --- a/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c +++ b/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c @@ -23,6 +23,9 @@ static bool chacha20_use_ssse3 __ro_after_init; static bool chacha20_use_avx2 __ro_after_init; static bool chacha20_use_avx512 __ro_after_init; static bool chacha20_use_avx512vl __ro_after_init; +static bool *const chacha20_nobs[] __initconst = { + &chacha20_use_ssse3, &chacha20_use_avx2, &chacha20_use_avx512, + &chacha20_use_avx512vl }; static void __init chacha20_fpu_init(void) { |