summaryrefslogtreecommitdiff
path: root/cham.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-16 12:21:44 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-16 12:21:44 -0400
commitb91491da4f59ab007e3443f15c9beec57da754ea (patch)
treeabc8bdaa7f7d5068ecefdd62c68e3b2e01144207 /cham.h
parent14dd03544e198613264127019b03c0059e24463b (diff)
downloadcryptopp-git-b91491da4f59ab007e3443f15c9beec57da754ea.tar.gz
Fix Solaris i386 compile of CHAM and LEA for SunStudio 12.3 and below
Diffstat (limited to 'cham.h')
-rw-r--r--cham.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cham.h b/cham.h
index 1b2a9b3d..987e99d7 100644
--- a/cham.h
+++ b/cham.h
@@ -19,6 +19,12 @@
# define CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS 1
#endif
+// Yet another SunStudio/SunCC workaround. Failed self tests
+// in SSE code paths on i386 for SunStudio 12.3 and below.
+#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120)
+# undef CRYPTOPP_CHAM_ADVANCED_PROCESS_BLOCKS
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
/// \brief CHAM block cipher information