summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-26 07:57:55 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-07-26 07:57:55 +0000
commitc26f501f496ef64f16a9b4e4b08b32b1e29cf60e (patch)
tree8c754caa31b56df1e037d69c508e7f68d11ff6cf /integer.cpp
parent58d9f812c149943cc18bd5b926b22fcc7b9b8b27 (diff)
downloadcryptopp-c26f501f496ef64f16a9b4e4b08b32b1e29cf60e.tar.gz
fix for x64-64
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@113 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/integer.cpp b/integer.cpp
index 52042dd..dd667f9 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -155,7 +155,7 @@ public:
#elif defined(_ARCH_PPC64)
r.m_halfs.low = a*b; __asm__("mulhdu %0,%1,%2" : "=r" (r.m_halfs.high) : "r" (a), "r" (b) : "cc");
#elif defined(__x86_64__)
- __asm__("mulq %3" : "=r.m_halfs.high" (r.m_halfs.high), "=a" (r.m_halfs.low) : "a" (a), "rm" (b) : "cc");
+ __asm__("mulq %3" : "=d" (r.m_halfs.high), "=a" (r.m_halfs.low) : "a" (a), "rm" (b) : "cc");
#elif defined(__mips64)
__asm__("dmultu %2,%3" : "=h" (r.m_halfs.high), "=l" (r.m_halfs.low) : "r" (a), "r" (b));
#elif defined(_M_IX86)