Try fix MSVC 2013 compile
parent
b9fe3a3415
commit
7fcc3c4ff0
12
blake2.cpp
12
blake2.cpp
|
|
@ -44,15 +44,15 @@
|
|||
#endif
|
||||
|
||||
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
||||
const unsigned int ALIGN_SPEC32=16;
|
||||
const unsigned int ALIGN_SPEC64=16;
|
||||
static const unsigned int ALIGN_SPEC32=16;
|
||||
static const unsigned int ALIGN_SPEC64=16;
|
||||
#elif (CRYPTOPP_CXX11_ALIGNOF)
|
||||
const unsigned int ALIGN_SPEC32=alignof(CryptoPP::word32);
|
||||
const unsigned int ALIGN_SPEC64=alignof(CryptoPP::word64);
|
||||
static const unsigned int ALIGN_SPEC32=alignof(CryptoPP::word32);
|
||||
static const unsigned int ALIGN_SPEC64=alignof(CryptoPP::word64);
|
||||
#else
|
||||
// Can't use GetAlignmentOf<word64>() because of C++11 constexpr
|
||||
const unsigned int ALIGN_SPEC32=4;
|
||||
const unsigned int ALIGN_SPEC64=8;
|
||||
static const unsigned int ALIGN_SPEC32=4;
|
||||
static const unsigned int ALIGN_SPEC64=8;
|
||||
#endif
|
||||
|
||||
NAMESPACE_BEGIN(CryptoPP)
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ extern const char DONNA32_FNAME[] = __FILE__;
|
|||
ANONYMOUS_NAMESPACE_BEGIN
|
||||
|
||||
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
||||
const unsigned int ALIGN_SPEC=16;
|
||||
static const unsigned int ALIGN_SPEC=16;
|
||||
#elif (CRYPTOPP_CXX11_ALIGNOF)
|
||||
const unsigned int ALIGN_SPEC=alignof(CryptoPP::word32);
|
||||
static const unsigned int ALIGN_SPEC=alignof(CryptoPP::word32);
|
||||
#else
|
||||
// Can't use GetAlignmentOf<word32>() because of C++11 constexpr
|
||||
const unsigned int ALIGN_SPEC=4;
|
||||
static const unsigned int ALIGN_SPEC=4;
|
||||
#endif
|
||||
|
||||
ANONYMOUS_NAMESPACE_END
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ extern const char DONNA64_FNAME[] = __FILE__;
|
|||
ANONYMOUS_NAMESPACE_BEGIN
|
||||
|
||||
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
||||
const unsigned int ALIGN_SPEC=16;
|
||||
static const unsigned int ALIGN_SPEC=16;
|
||||
#elif (CRYPTOPP_CXX11_ALIGNOF)
|
||||
const unsigned int ALIGN_SPEC=alignof(CryptoPP::word64);
|
||||
static const unsigned int ALIGN_SPEC=alignof(CryptoPP::word64);
|
||||
#else
|
||||
// Can't use GetAlignmentOf<word64>() because of C++11 constexpr
|
||||
const unsigned int ALIGN_SPEC=8;
|
||||
static const unsigned int ALIGN_SPEC=8;
|
||||
#endif
|
||||
|
||||
ANONYMOUS_NAMESPACE_END
|
||||
|
|
|
|||
|
|
@ -29,12 +29,12 @@
|
|||
ANONYMOUS_NAMESPACE_BEGIN
|
||||
|
||||
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
|
||||
const unsigned int ALIGN_SPEC=16;
|
||||
static const unsigned int ALIGN_SPEC=16;
|
||||
#elif (CRYPTOPP_CXX11_ALIGNOF)
|
||||
const unsigned int ALIGN_SPEC=alignof(CryptoPP::word32);
|
||||
static const unsigned int ALIGN_SPEC=alignof(CryptoPP::word32);
|
||||
#else
|
||||
// Can't use GetAlignmentOf<word32>() because of C++11 constexpr
|
||||
const unsigned int ALIGN_SPEC=4;
|
||||
static const unsigned int ALIGN_SPEC=4;
|
||||
#endif
|
||||
|
||||
ANONYMOUS_NAMESPACE_END
|
||||
|
|
|
|||
Loading…
Reference in New Issue