diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-05 01:15:14 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-07-05 01:15:14 +0000 |
commit | 55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169 (patch) | |
tree | bdfe463fd8b180c37b65007e19a29aa915fff3b3 /integer.cpp | |
parent | 32a4a9f72510c22a1c4ef7b73b0496ea031a090b (diff) | |
download | cryptopp-55a8ab1c8b2d3ff2ad7b3325f87e78b8976a6169.tar.gz |
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
Diffstat (limited to 'integer.cpp')
-rw-r--r-- | integer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |