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
add pet_stmt_build_ast_exprs
[pet.git]
/
tests
/
floord2.c
blob
afb6a62d7fd87830c32293205fcebb11eb1b41e0
1
#define floord(n,d) (((n)<0) ? -((-(n)+(d)-1)/(d)) : (n)/(d))
2
3
void
foo
(
int
N
)
4
{
5
int
i
;
6
int
a
[
N
];
7
8
#pragma scop
9
for
(
i
=
0
;
i
<
floord
(
N
,
2
); ++
i
)
10
a
[
i
] =
i
;
11
#pragma endscop
12
}