]> granicus.if.org Git - clang/commitdiff
[OpenCL] Add missing atom_xor for 64 bit to opencl-c.h
authorYaxun Liu <Yaxun.Liu@amd.com>
Tue, 25 Oct 2016 21:37:05 +0000 (21:37 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Tue, 25 Oct 2016 21:37:05 +0000 (21:37 +0000)
Differential Revision: https://reviews.llvm.org/D25954

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285125 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/opencl-c.h

index 9b5e2c3cc5c5ed7f70474c79a53abf88490a2840..f8e132040d631079c3e60aa7964f35d0dbb3abdf 100644 (file)
@@ -14616,6 +14616,13 @@ int __ovld atom_xor(volatile __local int *p, int val);
 unsigned int __ovld atom_xor(volatile __local unsigned int *p, unsigned int val);
 #endif
 
+#if defined(cl_khr_int64_extended_atomics)
+long __ovld atom_xor(volatile __global long *p, long val);
+unsigned long __ovld atom_xor(volatile __global unsigned long *p, unsigned long val);
+long __ovld atom_xor(volatile __local long *p, long val);
+unsigned long __ovld atom_xor(volatile __local unsigned long *p, unsigned long val);
+#endif
+
 #if defined(cl_khr_int64_base_atomics) && defined(cl_khr_int64_extended_atomics)
 #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : disable
 #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics : disable