diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2010-10-23 14:41:59 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2010-10-26 17:02:58 +0200 |
commit | ae455538218a748c62e452e8e9db83465f7f7ea1 (patch) | |
tree | 2ad01150c1655f3ab6f43f775ca924504cdd10c2 /isl_div.c | |
parent | 7fa322fb53400d1b3e4718077c84f9206fb5e3bc (diff) | |
download | isl-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.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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) |