1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
/*
* 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
}
|