blob: b4ac4c5ab1531002ea0343dc90c00cd4c568f93d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "stdlib.h"
struct big{
unsigned int a, b;
};
__kernel void add(__global struct big *b, unsigned int x, unsigned int y)
{
__private int d[3] = {0,1,2};
b->a = x + y + d[y];
b->b = x - y + 10;
}
|