#include #include #include #include /* Simply define an interface to the gcc-supported ia64 intrinsics */ /* define atomically incremented set */ #define N 32 static atomic_t Alist[N]; /* fetch and add the 'i'th counter */ int fetch_and_add( int i, int n ) { assert(i>=0 && i=0 && i=0 && i