2
# include "tas-alpha.h"
3
#elif defined(__i386__) || defined(__x86_64__)
8
# define testandset(x) (! __compare_and_swap((long int *)(x),0,1))
10
# include "tas-ia64.h"
14
__asm__ __volatile__ ("mf" ::: "memory");
18
int testandset(int *spinlock)
20
printf("ARMCI NEEDS TESTANDSET FOR THIS PLATFORM\n");
21
armci_die("cannot run",0);
26
int gcc_testandset(int *spinlock)
28
int rc=testandset(spinlock);
32
void gcc_clear_spinlock(int *spinlock)
34
#ifdef RELEASE_SPINLOCK
35
RELEASE_SPINLOCK(spinlock);