diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2013-08-11 14:57:35 +0400 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2013-08-11 14:58:07 +0400 |
commit | a9a05e8478d8971d02880bdcbf5bda4e0c2ce662 (patch) | |
tree | 19a86ee3cf890d3fc027a1e9bc634e7f2af26dad /tests | |
parent | 43058b343cc48084972fb6d49d0783d58d5ffcf1 (diff) | |
download | libatomic_ops-a9a05e8478d8971d02880bdcbf5bda4e0c2ce662.tar.gz |
tests: Add and/or/xor entries to list_atomic
* tests/list_atomic.template (list_atomicXX): Add AO_XSIZE_andXX,
AO_XSIZE_orXX, AO_XSIZE_xorXX invocations.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/list_atomic.template | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tests/list_atomic.template b/tests/list_atomic.template index 8817c6e..5a07b2a 100644 --- a/tests/list_atomic.template +++ b/tests/list_atomic.template @@ -26,7 +26,8 @@ void XSIZE_list_atomicXX(void) # if defined(AO_HAVE_test_and_setXX) AO_TS_t ts; # endif -# if defined(AO_HAVE_XSIZE_fetch_and_addXX) +# if defined(AO_HAVE_XSIZE_fetch_and_addXX) || defined(AO_HAVE_XSIZE_andXX) \ + || defined(AO_HAVE_XSIZE_orXX) || defined(AO_HAVE_XSIZE_xorXX) static XCTYPE incr /* = 0 */; # endif @@ -67,12 +68,32 @@ void XSIZE_list_atomicXX(void) # else (void)"No AO_XSIZE_fetch_and_sub1XX"; # endif +# ifdef AO_HAVE_XSIZE_andXX + (void)"AO_XSIZE_andXX(&val, incr):"; + AO_XSIZE_andXX(&val, incr); +# else + (void)"No AO_XSIZE_andXX"; +# endif +# ifdef AO_HAVE_XSIZE_orXX + (void)"AO_XSIZE_orXX(&val, incr):"; + AO_XSIZE_orXX(&val, incr); +# else + (void)"No AO_XSIZE_orXX"; +# endif +# ifdef AO_HAVE_XSIZE_xorXX + (void)"AO_XSIZE_xorXX(&val, incr):"; + AO_XSIZE_xorXX(&val, incr); +# else + (void)"No AO_XSIZE_xorXX"; +# endif # ifdef AO_HAVE_XSIZE_compare_and_swapXX (void)"AO_XSIZE_compare_and_swapXX(&val, oldval, newval):"; AO_XSIZE_compare_and_swapXX(&val, oldval, newval); # else (void)"No AO_XSIZE_compare_and_swapXX"; # endif + /* TODO: Add AO_compare_double_and_swap_doubleXX */ + /* TODO: Add AO_compare_and_swap_doubleXX */ # ifdef AO_HAVE_XSIZE_fetch_compare_and_swapXX (void)"AO_XSIZE_fetch_compare_and_swapXX(&val, oldval, newval):"; AO_XSIZE_fetch_compare_and_swapXX(&val, oldval, newval); |