2 * Copyright (c) 2003 by Hewlett-Packard Company. All rights reserved.
4 * This file is covered by the GNU general public license, version 2.
5 * see doc/COPYING for details.
8 /* This generates a compilable program. But it is really meant to be */
9 /* be used only with cc -E, to inspect the expensions generated by */
12 /* The result will not link or run. */
14 void list_atomicXX(void)
16 AO_T val, newval = 0, oldval = 0;
20 # if defined(AO_HAVE_nopXX)
26 # if defined(AO_HAVE_loadXX)
32 # if defined(AO_HAVE_storeXX)
33 "AO_storeXX(&val, newval):";
34 AO_storeXX(&val, newval);
38 # if defined(AO_HAVE_test_and_setXX)
39 "AO_test_and_setXX(&ts):";
40 AO_test_and_setXX(&ts);
42 "No AO_test_and_setXX";
44 # if defined(AO_HAVE_fetch_and_add1XX)
45 "AO_fetch_and_add1XX(&val):";
46 AO_fetch_and_add1XX(&val);
48 "No AO_fetch_and_add1XX";
50 # if defined(AO_HAVE_fetch_and_sub1XX)
51 "AO_fetch_and_sub1XX(&val):";
52 AO_fetch_and_sub1XX(&val);
54 "No AO_fetch_and_sub1XX";
56 # if defined(AO_HAVE_fetch_and_addXX)
57 "AO_fetch_and_addXX(&val, incr):";
58 AO_fetch_and_addXX(&val, incr);
60 "No AO_fetch_and_addXX";
62 # if defined(AO_HAVE_compare_and_swapXX)
63 "AO_compare_and_swapXX(&val, oldval, newval):";
64 AO_compare_and_swapXX(&val, oldval, newval);
66 "No AO_compare_and_swapXX";