From 64ef53e44584a5a9d36f9d1d8282b53e0e8c3225 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sun, 7 Mar 2010 10:56:10 +0100 Subject: [PATCH] add isl_pw_qpolynomial_dim --- include/isl_polynomial.h | 2 ++ isl_polynomial.c | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/include/isl_polynomial.h b/include/isl_polynomial.h index 886f71f..8677e7a 100644 --- a/include/isl_polynomial.h +++ b/include/isl_polynomial.h @@ -66,6 +66,8 @@ void isl_pw_qpolynomial_free(__isl_take isl_pw_qpolynomial *pwqp); __isl_give isl_dim *isl_pw_qpolynomial_get_dim( __isl_keep isl_pw_qpolynomial *pwqp); +unsigned isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial *pwqp, + enum isl_dim_type type); __isl_give isl_pw_qpolynomial *isl_pw_qpolynomial_add( __isl_take isl_pw_qpolynomial *pwqp1, diff --git a/isl_polynomial.c b/isl_polynomial.c index 446a96a..1a9bcc2 100644 --- a/isl_polynomial.c +++ b/isl_polynomial.c @@ -1836,6 +1836,12 @@ __isl_give isl_dim *isl_pw_qpolynomial_get_dim( return isl_dim_copy(pwqp->dim); } +unsigned isl_pw_qpolynomial_dim(__isl_keep isl_pw_qpolynomial *pwqp, + enum isl_dim_type type) +{ + return pwqp ? isl_dim_size(pwqp->dim, type) : 0; +} + __isl_give isl_term *isl_term_alloc(__isl_take isl_dim *dim, __isl_take isl_mat *div) { -- 2.7.4