diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-04-05 09:21:35 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-04-05 09:21:35 -0400 |
commit | 5017d9c91c853a508f25123a277dd65d60edcf3b (patch) | |
tree | 546c4af295b3fc687327e371a77db2bbe04a90df | |
parent | edc79e819bc9d81842c5c124873d1c401eeb6926 (diff) | |
download | cryptopp-git-5017d9c91c853a508f25123a277dd65d60edcf3b.tar.gz |
Report Altivec on PowerPC
-rw-r--r-- | simon.cpp | 8 | ||||
-rw-r--r-- | speck.cpp | 20 |
2 files changed, 2 insertions, 26 deletions
@@ -255,10 +255,6 @@ std::string SIMON64::Base::AlgorithmProvider() const if (HasNEON())
return "NEON";
# endif
-# if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return "Power7";
-# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return "Altivec";
@@ -278,10 +274,6 @@ unsigned int SIMON64::Base::OptimalDataAlignment() const if (HasNEON())
return 4;
# endif
-# if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return 4;
-# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return 16;
@@ -227,10 +227,6 @@ std::string SPECK64::Base::AlgorithmProvider() const if (HasNEON())
return "NEON";
# endif
-# if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return "Power7";
-# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return "Altivec";
@@ -250,10 +246,6 @@ unsigned int SPECK64::Base::OptimalDataAlignment() const if (HasNEON())
return 4;
# endif
-# if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return 4;
-# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return 16;
@@ -503,11 +495,7 @@ size_t SPECK64::Enc::AdvancedProcessBlocks(const byte *inBlocks, const byte *xor return SPECK64_Enc_AdvancedProcessBlocks_NEON(m_rkeys, (size_t)m_rounds,
inBlocks, xorBlocks, outBlocks, length, flags);
#endif
-#if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return SPECK64_Enc_AdvancedProcessBlocks_POWER7(m_rkeys, (size_t)m_rounds,
- inBlocks, xorBlocks, outBlocks, length, flags);
-#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
+#if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return SPECK64_Enc_AdvancedProcessBlocks_ALTIVEC(m_rkeys, (size_t)m_rounds,
inBlocks, xorBlocks, outBlocks, length, flags);
@@ -528,11 +516,7 @@ size_t SPECK64::Dec::AdvancedProcessBlocks(const byte *inBlocks, const byte *xor return SPECK64_Dec_AdvancedProcessBlocks_NEON(m_rkeys, (size_t)m_rounds,
inBlocks, xorBlocks, outBlocks, length, flags);
#endif
-#if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return SPECK64_Dec_AdvancedProcessBlocks_POWER7(m_rkeys, (size_t)m_rounds,
- inBlocks, xorBlocks, outBlocks, length, flags);
-#elif (CRYPTOPP_ALTIVEC_AVAILABLE)
+#if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return SPECK64_Dec_AdvancedProcessBlocks_ALTIVEC(m_rkeys, (size_t)m_rounds,
inBlocks, xorBlocks, outBlocks, length, flags);
|