Debian Codegraph @

libclc/generic/lib/cl_khr_int64_extended_atomics/atom_xor.cl

raw
1 #include <clc/clc.h>
2
3 #ifdef cl_khr_int64_extended_atomics
4
5 #define IMPL(AS, TYPE) \
6 _CLC_OVERLOAD _CLC_DEF TYPE atom_xor(volatile AS TYPE *p, TYPE val) { \
7 return __sync_fetch_and_xor_8(p, val); \
8 }
9
10 IMPL(global, long)
11 IMPL(global, unsigned long)
12 IMPL(local, long)
13 IMPL(local, unsigned long)
14 #undef IMPL
15
16 #endif