From 55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 5 Jul 2010 01:15:14 +0000 Subject: port to Sun Studio 12u1 Sun C++ 5.10 SunOS_i386 128229-02 2009/09/21 change makefile to compile for both i386 and x86_64 on Darwin/Mac OS X git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@499 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integer.cpp') diff --git a/integer.cpp b/integer.cpp index fc5ba2d..f07cce8 100644 --- a/integer.cpp +++ b/integer.cpp @@ -115,7 +115,7 @@ static word AtomicInverseModPower2(word A) #elif defined(__DECCXX) #define MultiplyWordsLoHi(p0, p1, a, b) p0 = a*b; p1 = asm("umulh %a0, %a1, %v0", a, b); #elif defined(__x86_64__) - #ifdef __SUNPRO_CC + #if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5100 // Sun Studio's gcc-style inline assembly is heavily bugged as of version 5.9 Patch 124864-09 2008/12/16, but this one works #define MultiplyWordsLoHi(p0, p1, a, b) asm ("mulq %3" : "=a"(p0), "=d"(p1) : "a"(a), "r"(b) : "cc"); #else -- cgit v1.2.1