diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2008-11-21 05:30:58 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2008-11-21 05:30:58 +0000 |
commit | 01b36798dbdd4f421f7085ef42aac90385770aac (patch) | |
tree | 329c9859ceacbb4df49e1bf05f0b6082b372a6b3 /vmac.cpp | |
parent | 514af6e3bd7ec2e16bc2524c7e77652983b13cb7 (diff) | |
download | cryptopp-01b36798dbdd4f421f7085ef42aac90385770aac.tar.gz |
fix compile with -fPIC (reported by Geoff Beier)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@425 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'vmac.cpp')
-rwxr-xr-x | vmac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -132,6 +132,7 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64, { const word64 *nhK = m_nhKey(); word64 *polyS = m_polyState(); + word32 L1KeyLength = m_L1KeyLength; #ifdef __GNUC__ word32 temp; @@ -142,7 +143,6 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64, ".intel_syntax noprefix;" #else #if _MSC_VER < 1300 || defined(__INTEL_COMPILER) - word32 L1KeyLength = m_L1KeyLength; char isFirstBlock = m_isFirstBlock; AS2( mov ebx, [L1KeyLength]) AS2( mov dl, [isFirstBlock]) @@ -362,7 +362,7 @@ VMAC_Base::VHASH_Update_SSE2(const word64 *data, size_t blocksRemainingInWord64, ".att_syntax prefix;" AS2( mov %0, %%ebx) : "=m" (temp) - : "m" (m_L1KeyLength), "c" (blocksRemainingInWord64), "S" (data), "D" (nhK+tagPart*2), "d" (m_isFirstBlock), "a" (polyS+tagPart*4) + : "m" (L1KeyLength), "c" (blocksRemainingInWord64), "S" (data), "D" (nhK+tagPart*2), "d" (m_isFirstBlock), "a" (polyS+tagPart*4) : "memory", "cc" ); #endif |