diff options
Diffstat (limited to 'libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl')
-rw-r--r-- | libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl b/libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl new file mode 100644 index 0000000..3acedd8 --- /dev/null +++ b/libclc/generic/lib/cl_khr_local_int32_extended_atomics/atom_min.cl @@ -0,0 +1,9 @@ +#include <clc/clc.h> + +#define IMPL(TYPE) \ +_CLC_OVERLOAD _CLC_DEF TYPE atom_min(local TYPE *p, TYPE val) { \ + return atomic_min(p, val); \ +} + +IMPL(int) +IMPL(unsigned int) |