mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 21:24:40 +02:00
Constraints fixed (again), volatile/memory clobber removed from conditional_inc
[SVN r27983]
This commit is contained in:
@@ -74,7 +74,7 @@ inline long atomic_conditional_increment( long * pw )
|
||||
|
||||
long r;
|
||||
|
||||
__asm__ __volatile__
|
||||
__asm__
|
||||
(
|
||||
"movl %0, %%eax\n\t"
|
||||
"0:\n\t"
|
||||
@@ -85,9 +85,9 @@ inline long atomic_conditional_increment( long * pw )
|
||||
"cmpxchgl %%ebx, %0\n\t"
|
||||
"jne 0b\n\t"
|
||||
"1:":
|
||||
"=m"( *pw ), "=&%eax"( r ): // outputs (%0, %1)
|
||||
"=m"( *pw ), "=&a"( r ): // outputs (%0, %1)
|
||||
"m"( *pw ): // input (%2)
|
||||
"%ebx", "memory", "cc" // clobbers
|
||||
"ebx", "cc" // clobbers
|
||||
);
|
||||
|
||||
return r;
|
||||
|
Reference in New Issue
Block a user