summaryrefslogtreecommitdiff
path: root/bench2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-10 01:24:32 -0400
committerJeffrey Walton <noloader@gmail.com>2018-08-10 01:24:32 -0400
commiteddc3579813722f5fde138463982994cf5776600 (patch)
tree82e6d6a580f8c22796480ea9783083eab7bf63ad /bench2.cpp
parentb44de10e187369c889fd77014a876d6fdcacd13c (diff)
downloadcryptopp-git-eddc3579813722f5fde138463982994cf5776600.tar.gz
Use shifts for VectorGetLow
Diffstat (limited to 'bench2.cpp')
-rw-r--r--bench2.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bench2.cpp b/bench2.cpp
index df1a813c..5224c531 100644
--- a/bench2.cpp
+++ b/bench2.cpp
@@ -234,6 +234,10 @@ void Benchmark2(double t, double hertz)
if (HasPMULL())
BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("AES/GCM", 0, "AES/GCM");
else
+#elif CRYPTOPP_POWER8_VMULL_AVAILABLE
+ if (HasPMULL())
+ BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("AES/GCM", 0, "AES/GCM");
+ else
#endif
{
BenchMarkByName2<AuthenticatedSymmetricCipher, AuthenticatedSymmetricCipher>("AES/GCM", 0, "AES/GCM (2K tables)", MakeParameters(Name::TableSize(), 2048));