summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-11-21 03:05:32 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2008-11-21 03:05:32 +0000
commit260b002fc017c4bf24ec72c4739d11babe9e1a99 (patch)
tree1b3cabd0bc88d30dc744786c7212761df853a716 /integer.cpp
parentfed5890194f50d587a9dc57f20d89e3369af125a (diff)
downloadcryptopp-260b002fc017c4bf24ec72c4739d11babe9e1a99.tar.gz
fixes for GCC 4.3.2 (reports from Chris Morgan and DiegoT)
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@422 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/integer.cpp b/integer.cpp
index 56dab61..e5aa95e 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -547,8 +547,8 @@ int Baseline_Add(size_t N, word *C, const word *A, const word *B)
AS2( mov %0, 0)
AS2( adc %0, %0)
".att_syntax;"
- : "=&r" (result)
- : "c" (N), "r" (C+N), "r" (A+N), "r" (B+N)
+ : "=&r" (result), "+c" (N)
+ : "r" (C+N), "r" (A+N), "r" (B+N)
: "memory", "cc"
);
return (int)result;
@@ -579,8 +579,8 @@ int Baseline_Sub(size_t N, word *C, const word *A, const word *B)
AS2( mov %0, 0)
AS2( adc %0, %0)
".att_syntax;"
- : "=&r" (result)
- : "c" (N), "r" (C+N), "r" (A+N), "r" (B+N)
+ : "=&r" (result), "+c" (N)
+ : "r" (C+N), "r" (A+N), "r" (B+N)
: "memory", "cc"
);
return (int)result;