summaryrefslogtreecommitdiff
path: root/vmac.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-11-21 05:30:58 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-11-21 05:30:58 +0000
commit01b36798dbdd4f421f7085ef42aac90385770aac (patch)
tree329c9859ceacbb4df49e1bf05f0b6082b372a6b3 /vmac.cpp
parent514af6e3bd7ec2e16bc2524c7e77652983b13cb7 (diff)
downloadcryptopp-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-xvmac.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vmac.cpp b/vmac.cpp
index f252d02..6c784f1 100755
--- a/vmac.cpp
+++ b/vmac.cpp
@@ -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