summaryrefslogtreecommitdiff
path: root/isl_div.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2010-10-23 14:41:59 +0200
committerSven Verdoolaege <skimo@kotnet.org>2010-10-26 17:02:58 +0200
commitae455538218a748c62e452e8e9db83465f7f7ea1 (patch)
tree2ad01150c1655f3ab6f43f775ca924504cdd10c2 /isl_div.c
parent7fa322fb53400d1b3e4718077c84f9206fb5e3bc (diff)
downloadisl-ae455538218a748c62e452e8e9db83465f7f7ea1.tar.gz
isl-ae455538218a748c62e452e8e9db83465f7f7ea1.tar.bz2
isl-ae455538218a748c62e452e8e9db83465f7f7ea1.zip
add isl_div_copy
Diffstat (limited to 'isl_div.c')
-rw-r--r--isl_div.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/isl_div.c b/isl_div.c
index 5c402dbd..3db5ad2b 100644
--- a/isl_div.c
+++ b/isl_div.c
@@ -88,6 +88,15 @@ struct isl_div *isl_div_alloc(struct isl_dim *dim)
return isl_basic_map_div(bmap, 0);
}
+__isl_give isl_div *isl_div_copy(__isl_keep isl_div *div)
+{
+ if (!div)
+ return NULL;
+
+ div->ref++;
+ return div;
+}
+
void isl_div_free(struct isl_div *c)
{
if (!c)