Fix SunCC 12.5 compile with -std=c++11

pull/548/head
Jeffrey Walton 2017-11-13 13:08:56 -05:00
parent 660681a884
commit f1386ad894
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ NAMESPACE_BEGIN(CryptoPP)
inline __m128i MM_SET_EPI64X(const word64 a, const word64 b)
{
const word64 t[2] = {b,a}; __m128i r;
::memcpy(&r, &t, sizeof(t));
::memcpy(&r, t, sizeof(t));
return r;
}
#else

View File

@ -47,14 +47,12 @@ struct BLAKE2_IV
};
template <>
CRYPTOPP_ALIGN_DATA(16)
const word32 BLAKE2_IV<word32, false>::iv[8] = {
0x6A09E667UL, 0xBB67AE85UL, 0x3C6EF372UL, 0xA54FF53AUL,
0x510E527FUL, 0x9B05688CUL, 0x1F83D9ABUL, 0x5BE0CD19UL
};
template <>
CRYPTOPP_ALIGN_DATA(16)
const word64 BLAKE2_IV<word64, true>::iv[8] = {
W64LIT(0x6a09e667f3bcc908), W64LIT(0xbb67ae8584caa73b),
W64LIT(0x3c6ef372fe94f82b), W64LIT(0xa54ff53a5f1d36f1),