Rivoreo Source Code Repositories
src.rivoreo.one
/
compiler-explorer
/
b597095f6ee657e6b1fde4b02f9bb2f61457d225
/
.
/
examples
/
openclc
/
default.cl
blob: ab6ac48a4cf05aae4dd5c8829962bc02a412661c [
file
] [
log
] [
blame
] [
raw
]
kernel void do_add_sub
(
global short4
*
add_out
,
global short4
*
sub_out
,
global short4
*
x
,
global short4
*
y
)
{
size_t g
=
get_global_id
(
0
)
;
add_out
[
g
]
=
x
[
g
]
+
y
[
g
]
;
sub_out
[
g
]
=
x
[
g
]
-
y
[
g
]
;
}