mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-02 08:09:27 +01:00
(cmpxchg_ptr): Correct sense of comparison.
(Logical change 1.125)
This commit is contained in:
parent
14e8ee4385
commit
e01fb3b27e
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
# define cmpxchg_ptr(_ptr,_o,_n) \
|
||||
((void *) __sync_val_compare_and_swap((volatile long *) (_ptr), \
|
||||
(long) (_o), (long) (_n)) \
|
||||
!= (_o))
|
||||
== (_o))
|
||||
# define fetch_and_add1(_ptr) __sync_fetch_and_add(_ptr, 1)
|
||||
# define HAVE_CMPXCHG
|
||||
# define HAVE_FETCH_AND_ADD1
|
||||
|
|
Loading…
Reference in a new issue