blob: 5b4be5764372801b5e0fb6b422491b35ac935b82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
__kernel void
compiler_insn_selection_masked_min_max(__global float* src, __global float* dst)
{
int id = (int)get_global_id(0);
if (get_local_id(0) > 5)
dst[id] = max(src[id], src[7]);
else
dst[id] = min(src[id], src[10]);
}
|