Sign in
fuchsia
/
third_party
/
cmake
/
79c89f6a95437205f8c35a356eeda371ab9e5e1b
/
.
/
Tests
/
ISPC
/
ChainedStaticLibraries
/
simple.ispc
blob: 70cb58885fcbc95f65efce35678fcbfb5d52ef62 [
file
] [
log
] [
blame
]
export
void
simple
(
uniform
float
vin
[],
uniform
float
vout
[],
uniform
int
count
)
{
foreach
(
index
=
0
...
count
)
{
float
v
=
vin
[
index
];
if
(
v
<
3.
)
v
=
v
*
v
;
else
v
=
sqrt
(
v
);
vout
[
index
]
=
v
;
}
}