From a9489b6e235784851a9a7c608c396cb661493dbb Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 10 Sep 2018 10:35:57 -0400 Subject: Report if Serpent is using AVX2 --- src/lib/block/serpent/serpent.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/lib/block') diff --git a/src/lib/block/serpent/serpent.cpp b/src/lib/block/serpent/serpent.cpp index d9001d19f..7bdda0f9f 100644 --- a/src/lib/block/serpent/serpent.cpp +++ b/src/lib/block/serpent/serpent.cpp @@ -276,6 +276,13 @@ void Serpent::clear() std::string Serpent::provider() const { +#if defined(BOTAN_HAS_SERPENT_AVX2) + if(CPUID::has_avx2()) + { + return "avx2"; + } +#endif + #if defined(BOTAN_HAS_SERPENT_SIMD) if(CPUID::has_simd_32()) { -- cgit v1.2.3