Fix SunStudio 12.4 compile on Solaris

This commit is contained in:
Jeffrey Walton 2018-07-16 04:42:52 -04:00
parent eb55cc0ae5
commit a0166d9546
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -526,7 +526,9 @@ inline __m128i GCM_Reduce_CLMUL(__m128i c0, __m128i c1, __m128i c2, __m128i r)
return _mm_xor_si128(c2, c1);
}
inline __m128i GCM_Multiply_CLMUL(const __m128i &x, const __m128i &h, const __m128i &r)
// SunCC 5.13-5.14 compiler crash. Don't make the function inline.
// This is in contrast to GCM_Reduce_CLMUL, which must be inline.
__m128i GCM_Multiply_CLMUL(const __m128i &x, const __m128i &h, const __m128i &r)
{
const __m128i c0 = _mm_clmulepi64_si128(x,h,0);
const __m128i c1 = _mm_xor_si128(_mm_clmulepi64_si128(x,h,1), _mm_clmulepi64_si128(x,h,0x10));