diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-04-30 23:00:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 23:00:56 -0400 |
commit | 7ef3dacdc2cdd9d87e6ac74943b2b895cc8739c0 (patch) | |
tree | 8097e9d491045095c6741e9700d45b36528a8595 /blake2.cpp | |
parent | ff544c386cefc8bb72c3f54cf592edbe4f5c5e0c (diff) | |
download | cryptopp-git-7ef3dacdc2cdd9d87e6ac74943b2b895cc8739c0.tar.gz |
Remove C++11 constexpr code for CRYPTOPP_ALIGN_DATA (PR #830)
I don't have faith in it even though it has tested good so far.
Diffstat (limited to 'blake2.cpp')
-rw-r--r-- | blake2.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -44,13 +44,10 @@ #endif
// Can't use GetAlignmentOf<word64>() because of C++11 and constexpr
-// Can use 'const unsigned int' because of MSVC
+// Can use 'const unsigned int' because of MSVC 2013
#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
# define ALIGN_SPEC32 16
# define ALIGN_SPEC64 16
-#elif (CRYPTOPP_CXX11_ALIGNOF)
-# define ALIGN_SPEC32 alignof(CryptoPP::word32)
-# define ALIGN_SPEC64 alignof(CryptoPP::word64)
#else
# define ALIGN_SPEC32 4
# define ALIGN_SPEC64 8
|