projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
3914c31
)
fix thinko
author
Jason Merrill
<jason@gcc.gnu.org>
Sat, 20 Dec 2003 17:44:11 +0000
(12:44 -0500)
committer
Jason Merrill
<jason@gcc.gnu.org>
Sat, 20 Dec 2003 17:44:11 +0000
(12:44 -0500)
From-SVN: r74889
libstdc++-v3/config/cpu/powerpc/atomicity.h
patch
|
blob
|
history
diff --git
a/libstdc++-v3/config/cpu/powerpc/atomicity.h
b/libstdc++-v3/config/cpu/powerpc/atomicity.h
index 6c474b48a894e0444e2683d2d53a335cfcf40be5..3b44b7daf929399d33473abec8119a4b2c3676fb 100644
(file)
--- a/
libstdc++-v3/config/cpu/powerpc/atomicity.h
+++ b/
libstdc++-v3/config/cpu/powerpc/atomicity.h
@@
-47,7
+47,7
@@
__exchange_and_add(volatile _Atomic_word* __mem, int __val)
"/* Inline exchange & add */\n"
"0:\t"
"lwarx %0,0,%3 \n\t"
- "add%I
3
%1,%0,%4 \n\t"
+ "add%I
4
%1,%0,%4 \n\t"
_STWCX " %1,0,%3 \n\t"
"bne- 0b \n\t"
"/* End exchange & add */"
@@
-66,7
+66,7
@@
__atomic_add(volatile _Atomic_word* __mem, int __val)
"/* Inline atomic add */\n"
"0:\t"
"lwarx %0,0,%2 \n\t"
- "add%I
2
%0,%0,%3 \n\t"
+ "add%I
3
%0,%0,%3 \n\t"
_STWCX " %0,0,%2 \n\t"
"bne- 0b \n\t"
"/* End atomic add */"