blob: 0a055ca8efe3cb3096d1314fb7a26bf579493cc1 [file] [log] [blame]
// -target-api 0
#pragma version(1)
#pragma rs java_package_name(foo)
typedef struct foo {
int x[10];
} foo;
foo __attribute__((kernel("reduce"))) add_foo_a(const foo a, const foo b) {
foo tmp = a;
for (int i = 0; i < 10; ++i)
tmp.x[i] += b.x[i];
return tmp;
}