Merge [57949] to release. Fixes #3678. Fixes #3341.

[SVN r58063]
This commit is contained in:
Peter Dimov
2009-11-30 20:17:14 +00:00
parent eec640bfd7
commit 2bd0778778

View File

@@ -30,9 +30,9 @@ namespace detail
inline int32_t compare_and_swap( int32_t * dest_, int32_t compare_, int32_t swap_ ) inline int32_t compare_and_swap( int32_t * dest_, int32_t compare_, int32_t swap_ )
{ {
__asm__ __volatile__( "cas %0, %2, %1" __asm__ __volatile__( "cas [%1], %2, %0"
: "+m" (*dest_), "+r" (swap_) : "+r" (swap_)
: "r" (compare_) : "r" (dest_), "r" (compare_)
: "memory" ); : "memory" );
return swap_; return swap_;