From f9f003aaa79b270faef92e81b1fa302bb19a3872 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 19 Jul 2012 14:12:51 +0200 Subject: [PATCH] privately export isl_mat_cmp_div Signed-off-by: Sven Verdoolaege --- isl_local_space.c | 4 ++-- isl_local_space_private.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/isl_local_space.c b/isl_local_space.c index 96703f9b..dce7e5f4 100644 --- a/isl_local_space.c +++ b/isl_local_space.c @@ -436,7 +436,7 @@ static int cmp_row(isl_int *row_i, isl_int *row_j, int i, int j, /* Call cmp_row for divs in a matrix. */ -static int mat_cmp_row(__isl_keep isl_mat *div, int i, int j) +int isl_mat_cmp_div(__isl_keep isl_mat *div, int i, int j) { return cmp_row(div->row[i], div->row[j], i, j, div->n_row, div->n_col); } @@ -516,7 +516,7 @@ __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1, expand_row(div, k, div1, i, exp1); expand_row(div, k + 1, div2, j, exp2); - cmp = mat_cmp_row(div, k, k + 1); + cmp = isl_mat_cmp_div(div, k, k + 1); if (cmp == 0) { exp1[i++] = k; exp2[j++] = k; diff --git a/isl_local_space_private.h b/isl_local_space_private.h index 8d106bd0..75526ec3 100644 --- a/isl_local_space_private.h +++ b/isl_local_space_private.h @@ -20,6 +20,7 @@ __isl_give isl_local_space *isl_local_space_alloc_div(__isl_take isl_space *dim, __isl_give isl_local_space *isl_local_space_add_div( __isl_take isl_local_space *ls, __isl_take isl_vec *div); +int isl_mat_cmp_div(__isl_keep isl_mat *div, int i, int j); __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1, __isl_keep isl_mat *div2, int *exp1, int *exp2); -- 2.11.4.GIT