projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added fehler20
[libfirm]
/
ir
/
be
/
test
/
langshootout
/
n-body.c
diff --git
a/ir/be/test/langshootout/n-body.c
b/ir/be/test/langshootout/n-body.c
index
c1aa2e4
..
7081537
100644
(file)
--- a/
ir/be/test/langshootout/n-body.c
+++ b/
ir/be/test/langshootout/n-body.c
@@
-129,9
+129,12
@@
struct planet bodies[NBODIES] = {
int main(int argc, char ** argv)
{
- int n =
atoi(argv[1])
;
+ int n =
1000000
;
int i;
+ if(argc > 1)
+ n = atoi(argv[1]);
+
offset_momentum(NBODIES, bodies);
printf ("%.9f\n", energy(NBODIES, bodies));
for (i = 1; i <= n; i++)