/* * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved. * * This file is covered by the GNU general public license, version 2. * see doc/COPYING for details. */ /* This generates a compilable program. But it is really meant to be */ /* be used only with cc -E, to inspect the expensions generated by */ /* primitives. */ /* The result will not link or run. */ void list_atomicXX(void) { AO_T *addr, val, newval, oldval; AO_TS_T tsaddr; long incr; # if defined(AO_HAVE_nopXX) "AO_nopXX(): "; AO_nopXX(); # else "No AO_nopXX"; # endif # if defined(AO_HAVE_loadXX) "AO_loadXX(addr):"; AO_loadXX(addr); # else "No AO_loadXX"; # endif # if defined(AO_HAVE_storeXX) "AO_storeXX(addr, val):"; AO_storeXX(addr, val); # else "No AO_storeXX"; # endif # if defined(AO_HAVE_test_and_setXX) "AO_test_and_setXX(tsaddr):"; AO_test_and_setXX(tsaddr); # else "No AO_test_and_setXX"; # endif # if defined(AO_HAVE_fetch_and_add1XX) "AO_fetch_and_add1XX(addr):"; AO_fetch_and_add1XX(addr); # else "No AO_fetch_and_add1XX"; # endif # if defined(AO_HAVE_fetch_and_sub1XX) "AO_fetch_and_sub1XX(addr):"; AO_fetch_and_sub1XX(addr); # else "No AO_fetch_and_sub1XX"; # endif # if defined(AO_HAVE_fetch_and_addXX) "AO_fetch_and_addXX(addr, incr):"; AO_fetch_and_addXX(addr, incr); # else "No AO_fetch_and_addXX"; # endif # if defined(AO_HAVE_compare_and_swapXX) "AO_compare_and_swapXX(addr, oldval, newval):"; AO_compare_and_swapXX(addr, oldval, newval); # else "No AO_compare_and_swapXX"; # endif }