diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-04-27 20:35:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-27 20:35:01 -0400 |
commit | 39418a85122fa7954cca6354be30a44d6335874e (patch) | |
tree | eae89a92177cb1c2e96a44435821d4d65086b481 /simon.cpp | |
parent | d451751eb269ff1345c9937107788d678c70e36f (diff) | |
download | cryptopp-git-39418a85122fa7954cca6354be30a44d6335874e.tar.gz |
Use PowerPC unaligned loads and stores with Power8 (GH #825, PR #826)
Use PowerPC unaligned loads and stores with Power8. Formerly we were using Power7 as the floor because the IBM POWER Architecture manuals said unaligned loads and stores were available. However, some compilers generate bad code for unaligned loads and stores using `-march=power7`, so bump to a known good.
Diffstat (limited to 'simon.cpp')
-rw-r--r-- | simon.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -255,9 +255,9 @@ std::string SIMON64::Base::AlgorithmProvider() const if (HasNEON())
return "NEON";
# endif
-# if (CRYPTOPP_POWER7_AVAILABLE)
- if (HasPower7())
- return "Power7";
+# if (CRYPTOPP_POWER8_AVAILABLE)
+ if (HasPower8())
+ return "Power8";
# endif
# if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
|