summaryrefslogtreecommitdiff
path: root/lea.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 /lea.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 'lea.h')
-rw-r--r--lea.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lea.h b/lea.h
index 1c4019c9..a2fb8bb2 100644
--- a/lea.h
+++ b/lea.h
@@ -19,6 +19,12 @@
# define CRYPTOPP_LEA_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_LEA_ADVANCED_PROCESS_BLOCKS
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
/// \brief LEA block cipher information