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

#define IMPL(TYPE) \
_CLC_OVERLOAD _CLC_DEF TYPE atom_dec(volatile global TYPE *p) { \
  return atomic_dec(p); \
}

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