projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d0bc5d2
)
isl_tab.c: fix up to_col
author
Sven Verdoolaege
<skimo@purples.(none)>
Sat, 5 Sep 2009 21:27:34 +0000
(23:27 +0200)
committer
Sven Verdoolaege
<skimo@purples.(none)>
Sun, 6 Sep 2009 15:57:15 +0000
(17:57 +0200)
isl_tab.c
patch
|
blob
|
history
diff --git
a/isl_tab.c
b/isl_tab.c
index
3adb11d
..
dc74e29
100644
(file)
--- a/
isl_tab.c
+++ b/
isl_tab.c
@@
-1262,21
+1262,21
@@
error:
/* Pivot a non-negative variable down until it reaches the value zero
* and then pivot the variable into a column position.
*/
/* Pivot a non-negative variable down until it reaches the value zero
* and then pivot the variable into a column position.
*/
-int to_col(struct isl_tab *tab, struct isl_tab_var *var)
+
static
int to_col(struct isl_tab *tab, struct isl_tab_var *var)
{
int i;
int row, col;
unsigned off = 2 + tab->M;
if (!var->is_row)
{
int i;
int row, col;
unsigned off = 2 + tab->M;
if (!var->is_row)
- return;
+ return
0
;
while (isl_int_is_pos(tab->mat->row[var->index][1])) {
find_pivot(tab, var, NULL, -1, &row, &col);
isl_assert(tab->mat->ctx, row != -1, return -1);
isl_tab_pivot(tab, row, col);
if (!var->is_row)
while (isl_int_is_pos(tab->mat->row[var->index][1])) {
find_pivot(tab, var, NULL, -1, &row, &col);
isl_assert(tab->mat->ctx, row != -1, return -1);
isl_tab_pivot(tab, row, col);
if (!var->is_row)
- return;
+ return
0
;
}
for (i = tab->n_dead; i < tab->n_col; ++i)
}
for (i = tab->n_dead; i < tab->n_col; ++i)