blob: 90dfb603a4f85b6abaea593301d6face2bbd778a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
kernel void compiler_long_cmp_l(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] < src2[i]) ? 3 : 4;
}
kernel void compiler_long_cmp_le(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] <= src2[i]) ? 3 : 4;
}
kernel void compiler_long_cmp_g(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] > src2[i]) ? 3 : 4;
}
kernel void compiler_long_cmp_ge(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] >= src2[i]) ? 3 : 4;
}
kernel void compiler_long_cmp_eq(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] == src2[i]) ? 3 : 4;
}
kernel void compiler_long_cmp_neq(global long *src1, global long *src2, global long *dst) {
int i = get_global_id(0);
dst[i] = (src1[i] != src2[i]) ? 3 : 4;
}
|