summaryrefslogtreecommitdiff
path: root/tiger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tiger.cpp')
-rw-r--r--tiger.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tiger.cpp b/tiger.cpp
index 332de2c..87ec74f 100644
--- a/tiger.cpp
+++ b/tiger.cpp
@@ -34,7 +34,7 @@ void Tiger::TruncatedFinal(byte *hash, size_t size)
void Tiger::Transform (word64 *digest, const word64 *X)
{
-#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE
+#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE && CRYPTOPP_BOOL_X86
if (HasSSE2())
{
#ifdef __GNUC__
@@ -43,9 +43,14 @@ void Tiger::Transform (word64 *digest, const word64 *X)
".intel_syntax noprefix;"
AS1( push ebx)
#else
+ #if _MSC_VER < 1300
+ const word64 *t = table;
+ AS2( mov edx, t)
+ #else
+ AS2( lea edx, [table])
+ #endif
AS2( mov eax, digest)
AS2( mov esi, X)
- AS2( lea edx, [table])
#endif
AS2( movq mm0, [eax])
AS2( movq mm1, [eax+1*8])