summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/cl_khr_global_int32_base_atomics/atom_cmpxchg.cl
blob: becf76742eb9518177cacf24036d8b19bbd92467 (plain)
1
2
3
4
5
6
7
8
9
#include <clc/clc.h>

#define IMPL(TYPE) \
_CLC_OVERLOAD _CLC_DEF TYPE atom_cmpxchg(volatile global TYPE *p, TYPE cmp, TYPE val) { \
  return atomic_cmpxchg(p, cmp, val); \
}

IMPL(int)
IMPL(unsigned int)
OpenPOWER on IntegriCloud