forked from pool/boost
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
---
|
|
boost/detail/sp_counted_base_gcc_ppc.hpp | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
Index: boost_1_33_1/boost/detail/sp_counted_base_gcc_ppc.hpp
|
|
===================================================================
|
|
--- boost_1_33_1.orig/boost/detail/sp_counted_base_gcc_ppc.hpp 2005-08-24 19:15:49.000000000 +0200
|
|
+++ boost_1_33_1/boost/detail/sp_counted_base_gcc_ppc.hpp 2008-01-16 02:09:40.000000000 +0100
|
|
@@ -46,7 +46,7 @@ inline void atomic_increment( int * pw )
|
|
"stwcx. %1, 0, %2\n\t"
|
|
"bne- 0b":
|
|
|
|
- "=m"( *pw ), "=&b"( tmp ):
|
|
+ "+m"( *pw ), "=&b"( tmp ):
|
|
"r"( pw ):
|
|
"cc"
|
|
);
|
|
@@ -68,9 +68,9 @@ inline int atomic_decrement( int * pw )
|
|
"bne- 0b\n\t"
|
|
"isync":
|
|
|
|
- "=m"( *pw ), "=&b"( rv ):
|
|
+ "+m"( *pw ), "=&b"( rv ):
|
|
"r"( pw ):
|
|
- "memory", "cc"
|
|
+ "cc"
|
|
);
|
|
|
|
return rv;
|
|
@@ -94,7 +94,7 @@ inline int atomic_conditional_increment(
|
|
"stwcx. %1, 0, %2\n\t"
|
|
"bne- 0b":
|
|
|
|
- "=m"( *pw ), "=&b"( rv ):
|
|
+ "+m"( *pw ), "=&b"( rv ):
|
|
"r"( pw ):
|
|
"cc"
|
|
);
|