From 28f079ba6412f5b6ac74b4e6152bc30889455b37 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 16 Jul 2018 10:22:21 -0400 Subject: [PATCH] Fix SunStudio 12.3 compile on i386 --- simeck-simd.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simeck-simd.cpp b/simeck-simd.cpp index 88db5da1..87c02eea 100644 --- a/simeck-simd.cpp +++ b/simeck-simd.cpp @@ -182,7 +182,8 @@ inline __m128i RepackXMM(const __m128i& v) inline void SIMECK64_Encrypt(__m128i &a, __m128i &b, __m128i &c, __m128i &d, const __m128i key) { - const __m128i s = a, t = c; + // SunStudio 12.3 workaround + __m128i s, t; s = a; t = c; a = _mm_xor_si128(_mm_and_si128(a, RotateLeft32<5>(a)), RotateLeft32<1>(a)); c = _mm_xor_si128(_mm_and_si128(c, RotateLeft32<5>(c)), RotateLeft32<1>(c)); a = _mm_xor_si128(a, _mm_xor_si128(b, key));