summaryrefslogtreecommitdiff
path: root/sha.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-10-26 09:50:49 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-10-26 09:50:49 +0000
commitb4f335b4f0df19e4940c5318af45ad114156edf5 (patch)
treeac3d63e8e69c858d5048e728191b2b455e02ba4c /sha.cpp
parentf4782fe5cba3832fa83efb316afa141f7653b1d6 (diff)
downloadcryptopp-b4f335b4f0df19e4940c5318af45ad114156edf5.tar.gz
do not align to 16 when not needed
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@414 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'sha.cpp')
-rw-r--r--sha.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sha.cpp b/sha.cpp
index 78a850e..4f8d656 100644
--- a/sha.cpp
+++ b/sha.cpp
@@ -265,7 +265,11 @@ void SHA512::InitState(HashWordType *state)
memcpy(state, s, sizeof(s));
}
+#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE && CRYPTOPP_BOOL_X86
CRYPTOPP_ALIGN_DATA(16) static const word64 SHA512_K[80] CRYPTOPP_SECTION_ALIGN16 = {
+#else
+static const word64 SHA512_K[80] = {
+#endif
W64LIT(0x428a2f98d728ae22), W64LIT(0x7137449123ef65cd),
W64LIT(0xb5c0fbcfec4d3b2f), W64LIT(0xe9b5dba58189dbbc),
W64LIT(0x3956c25bf348b538), W64LIT(0x59f111f1b605d019),