projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unsafe mode for float to int conversion
[libfirm]
/
ir
/
be
/
test
/
Queens.c
diff --git
a/ir/be/test/Queens.c
b/ir/be/test/Queens.c
index
c0f4db5
..
2c1015b
100644
(file)
--- a/
ir/be/test/Queens.c
+++ b/
ir/be/test/Queens.c
@@
-32,7
+32,7
@@
static int myabs(int i) {
return(i);
}
return(i);
}
-boolean place_ok (int i) {
+
static
boolean place_ok (int i) {
// return whether queen in column i is
// not in check from queens left of it
int j = 0;
// return whether queen in column i is
// not in check from queens left of it
int j = 0;
@@
-49,7
+49,7
@@
boolean place_ok (int i) {
return(res);
}
return(res);
}
-int solve (int n) {
+
static
int solve (int n) {
// return the number of solutions to the n-queens problem
int c = 0;
int res = 0;
// return the number of solutions to the n-queens problem
int c = 0;
int res = 0;