aboutsummaryrefslogtreecommitdiff
path: root/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl
diff options
context:
space:
mode:
Diffstat (limited to 'libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl')
-rw-r--r--libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl9
1 files changed, 9 insertions, 0 deletions
diff --git a/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl b/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl
new file mode 100644
index 0000000..1a8e350
--- /dev/null
+++ b/libclc/generic/lib/cl_khr_global_int32_extended_atomics/atom_xor.cl
@@ -0,0 +1,9 @@
+#include <clc/clc.h>
+
+#define IMPL(TYPE) \
+_CLC_OVERLOAD _CLC_DEF TYPE atom_xor(global TYPE *p, TYPE val) { \
+ return atomic_xor(p, val); \
+}
+
+IMPL(int)
+IMPL(unsigned int)