]> granicus.if.org Git - libatomic_ops/commit
Fix asm constraints of primitives in sunc/x86.h
authorIvan Maidanski <ivmai@mail.ru>
Fri, 29 Mar 2013 03:31:06 +0000 (07:31 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 29 Mar 2013 09:50:27 +0000 (13:50 +0400)
commit31df7fa54fda2e5f7f77d0c947413c3ac390d28d
tree68beb024a86ff8b7e1e5b7934062997121d9fd23
parentf5f47f7b9c70df2e0d371dd2f303a0dec1a37223
Fix asm constraints of primitives in sunc/x86.h

* src/atomic_ops/sysdeps/sunc/x86.h (AO_fetch_and_add_full,
AO_char_fetch_and_add_full, AO_short_fetch_and_add_full, AO_and_full,
AO_or_full, AO_xor_full, AO_test_and_set_full,
AO_compare_and_swap_full, AO_compare_double_and_swap_double_full,
AO_int_fetch_and_add_full): Use "+m" asm constraint for *addr instead
of "=m" (because the value pointed by addr is read and written by the
code).
* src/atomic_ops/sysdeps/sunc/x86.h (AO_fetch_compare_and_swap_full):
Use same asm constraints and parameters order as in
AO_compare_and_swap_full.
src/atomic_ops/sysdeps/sunc/x86.h