From 1a6d66e68a1d33cf4d1a7c3f51d1907edddf4095 Mon Sep 17 00:00:00 2001 From: weidai Date: Sat, 26 Jul 2003 07:57:55 +0000 Subject: [PATCH] fix for x64-64 --- integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integer.cpp b/integer.cpp index 52042dd5..dd667f99 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)