Sign in
gnu
/
gcc
/
a8404c07e7fca388c02c39077865f7d5fa928430
/
.
/
gcc
/
testsuite
/
c-c++-common
/
gomp
/
simd7.c
blob: 83d53251d583e7487a34ebb2c42c65b920d635bf [
file
] [
log
] [
blame
]
int
a
[
64
];
#pragma
omp declare simd linear
(
x
)
int
bar
(
int
x
,
int
y
)
{
int
v
;
#pragma
omp atomic capture
v
=
a
[
x
]
+=
y
;
return
v
;
}
void
foo
(
void
)
{
int
i
;
#pragma
omp simd
for
(
i
=
0
;
i
<
64
;
i
++)
#pragma
omp atomic
a
[
i
]
+=
1
;
}