From 25116f5aae5ddf23891d62d23ad4c28ce248bd67 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 17 Aug 2018 09:02:24 -0400 Subject: [PATCH] Enable SSSE3 and SSE4 for SIMON and SPECK on Solaris with SunCC 5.13 and above --- simon.h | 2 +- speck.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simon.h b/simon.h index d96400ef..e415dfc3 100644 --- a/simon.h +++ b/simon.h @@ -31,7 +31,7 @@ // Yet another SunStudio/SunCC workaround. Failed self tests // in SSE code paths on i386 for SunStudio 12.3 and below. -#if defined(__SUNPRO_CC) +#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120) # undef CRYPTOPP_SIMON64_ADVANCED_PROCESS_BLOCKS # undef CRYPTOPP_SIMON128_ADVANCED_PROCESS_BLOCKS #endif diff --git a/speck.h b/speck.h index c0b67315..9e0b26d1 100644 --- a/speck.h +++ b/speck.h @@ -31,7 +31,7 @@ // Yet another SunStudio/SunCC workaround. Failed self tests // in SSE code paths on i386 for SunStudio 12.3 and below. -#if defined(__SUNPRO_CC) +#if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x5120) # undef CRYPTOPP_SPECK64_ADVANCED_PROCESS_BLOCKS # undef CRYPTOPP_SPECK128_ADVANCED_PROCESS_BLOCKS #endif