26 #if defined(VEC_SIZE) && defined(VEC_SIZE_LEFTOVER) 61 __global uchar *in1_addr = in1_ptr + in1_offset_first_element_in_bytes + x_offs + get_global_id(1) * in1_step_y;
62 __global uchar *in2_addr = in2_ptr + in2_offset_first_element_in_bytes + x_offs + get_global_id(1) * in2_step_y;
63 __global uchar *out_addr = out_ptr + out_offset_first_element_in_bytes + x_offs + get_global_id(1) * out_step_y;
75 STORE_VECTOR_SELECT(data, uchar, (__global uchar *)out_addr,
VEC_SIZE, VEC_SIZE_LEFTOVER, VEC_SIZE_LEFTOVER != 0 && get_global_id(0) == 0);
111 __global uchar *in1_addr = in1_ptr + in1_offset_first_element_in_bytes + x_offs + get_global_id(1) * in1_step_y;
112 __global uchar *in2_addr = in2_ptr + in2_offset_first_element_in_bytes + x_offs + get_global_id(1) * in2_step_y;
113 __global uchar *out_addr = out_ptr + out_offset_first_element_in_bytes + x_offs + get_global_id(1) * out_step_y;
125 STORE_VECTOR_SELECT(data, uchar, (__global uchar *)out_addr,
VEC_SIZE, VEC_SIZE_LEFTOVER, VEC_SIZE_LEFTOVER != 0 && get_global_id(0) == 0);
161 __global uchar *in1_addr = in1_ptr + in1_offset_first_element_in_bytes + x_offs + get_global_id(1) * in1_step_y;
162 __global uchar *in2_addr = in2_ptr + in2_offset_first_element_in_bytes + x_offs + get_global_id(1) * in2_step_y;
163 __global uchar *out_addr = out_ptr + out_offset_first_element_in_bytes + x_offs + get_global_id(1) * out_step_y;
175 STORE_VECTOR_SELECT(data, uchar, (__global uchar *)out_addr,
VEC_SIZE, VEC_SIZE_LEFTOVER, VEC_SIZE_LEFTOVER != 0 && get_global_id(0) == 0);
204 __global uchar *in1_addr = in1_ptr + in1_offset_first_element_in_bytes + x_offs + get_global_id(1) * in1_step_y;
205 __global uchar *out_addr = out_ptr + out_offset_first_element_in_bytes + x_offs + get_global_id(1) * out_step_y;
215 STORE_VECTOR_SELECT(data, uchar, (__global uchar *)out_addr,
VEC_SIZE, VEC_SIZE_LEFTOVER, VEC_SIZE_LEFTOVER != 0 && get_global_id(0) == 0);
218 #endif // defined(VEC_SIZE) && defined(VEC_SIZE_LEFTOVER)
SimpleTensor< T > bitwise_or(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2)
#define IMAGE_DECLARATION(name)
#define STORE_VECTOR_SELECT(basename, data_type, ptr, vec_size, leftover, cond)
Store a vector that can only be partial in x.
SimpleTensor< T > bitwise_and(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2)
SimpleTensor< T > bitwise_xor(const SimpleTensor< T > &src1, const SimpleTensor< T > &src2)
SimpleTensor< T > bitwise_not(const SimpleTensor< T > &src)
#define VEC_DATA_TYPE(type, size)