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