summaryrefslogtreecommitdiff
path: root/blake2.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-04-30 23:00:56 -0400
committerGitHub <noreply@github.com>2019-04-30 23:00:56 -0400
commit7ef3dacdc2cdd9d87e6ac74943b2b895cc8739c0 (patch)
tree8097e9d491045095c6741e9700d45b36528a8595 /blake2.cpp
parentff544c386cefc8bb72c3f54cf592edbe4f5c5e0c (diff)
downloadcryptopp-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.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/blake2.cpp b/blake2.cpp
index 4623d23b..71c3a432 100644
--- a/blake2.cpp
+++ b/blake2.cpp
@@ -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