Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
bf4361e6
Commit
bf4361e6
authored
Aug 09, 2006
by
Christian Würdig
Browse files
added missing variable
parent
d622a223
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/test/gcd.c
View file @
bf4361e6
...
...
@@ -19,14 +19,20 @@ int gcd(int a, int b)
int
main
(
int
argc
,
char
**
argv
)
{
int
a
=
49
,
b
=
35
;
int
a
=
49
,
b
=
35
,
i
,
g
;
if
(
argc
>
2
)
{
a
=
atoi
(
argv
[
1
]);
b
=
atoi
(
argv
[
2
]);
}
printf
(
"gcd.c
\n
"
);
printf
(
" GCD of %d and %d is %d
\n
"
,
a
,
b
,
gcd
(
a
,
b
));
for
(
i
=
0
;
i
<
100000
;
i
++
)
{
g
=
gcd
(
a
,
b
);
}
printf
(
" GCD of %d and %d is %d
\n
"
,
a
,
b
,
g
);
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment