☰
Debian Codegraph
@
1:19.1.7-22
1:19.1.7-20
/
/
libclc
/
generic
/
lib
/
cl_khr_local_int32_base_atomics
/
atom_cmpxchg.cl
☽
☼
libclc/generic/lib/cl_khr_local_int32_base_atomics/atom_cmpxchg.cl
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
#include <clc/clc.h>
2
3
#define IMPL(TYPE) \
4
_CLC_OVERLOAD _CLC_DEF TYPE atom_cmpxchg(volatile local TYPE *p, TYPE cmp, TYPE val) { \
5
return atomic_cmpxchg(p, cmp, val); \
6
}
7
8
IMPL(int)
9
IMPL(unsigned int)