projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fixed typedef
[libfirm]
/
ir
/
be
/
test
/
Thilo.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
5
static int id(int i) {
6
return(i);
7
}
8
9
int main(int argc, char*argv[]) {
10
int i, s;
11
int count;
12
int size;
13
14
printf("Thilo.c\n");
15
16
s = 0;
17
if(argc > 1)
18
size = atoi(argv[1]);
19
else
20
size = 1000;
21
for(count = 0; count < 10000; count++) {
22
s = 0;
23
for(i = 1; i <= size; i++) {
24
s += id(i);
25
}
26
}
27
printf(" %d\n", s);
28
29
return 0;
30
}