1
0
Fork 0
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:
hp.com!davidm 2003-11-25 20:13:21 +00:00
parent 14e8ee4385
commit e01fb3b27e

View file

@ -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