repo.or.cz
/
pet.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
support empty statements
[pet.git]
/
tests
/
rotate.c
blob
83cc9d9d97a5898085e34ed11880c4c60592d704
1
void
rotate
(
int
N
,
int
A
[
N
],
int
B
[
N
])
2
{
3
#pragma scop
4
for
(
int
i
=
0
;
i
<
N
; ++
i
)
5
A
[
i
] =
i
==
0
?
B
[
N
-
1
] :
B
[
i
-
1
];
6
#pragma endscop
7
}