summaryrefslogtreecommitdiff
path: root/src/kernels/cl_internal_fill_buf_align8.cl
blob: edaff772e36b08bedc3f2b7d38835dedf0b180f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define COMPILER_ABS_FUNC_N(N) \
    kernel void __cl_fill_region_align8_##N ( global float##N* dst, float##N pattern, \
                                              unsigned int offset, unsigned int size) { \
         int i = get_global_id(0); \
         if (i < size) { \
             dst[i+offset] = pattern; \
         }  \
    }


COMPILER_ABS_FUNC_N(2)
COMPILER_ABS_FUNC_N(4)
COMPILER_ABS_FUNC_N(8)
COMPILER_ABS_FUNC_N(16)