summaryrefslogtreecommitdiff
path: root/isl_pw_templ.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2011-07-09 12:07:45 +0200
committerSven Verdoolaege <skimo@kotnet.org>2011-07-09 16:17:28 +0200
commit12e8ddb7920ae689201c88dbdb268fe0aa20b0c3 (patch)
tree1aa71819e0b99947aee892ab0b23952f9005c8bc /isl_pw_templ.c
parentdddfcb758911e7983dec17880d073489131f4bf7 (diff)
downloadisl-12e8ddb7920ae689201c88dbdb268fe0aa20b0c3.tar.gz
isl-12e8ddb7920ae689201c88dbdb268fe0aa20b0c3.tar.bz2
isl-12e8ddb7920ae689201c88dbdb268fe0aa20b0c3.zip
add isl_pw_aff_sub
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Diffstat (limited to 'isl_pw_templ.c')
-rw-r--r--isl_pw_templ.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/isl_pw_templ.c b/isl_pw_templ.c
index cb734ca2..1b0296fe 100644
--- a/isl_pw_templ.c
+++ b/isl_pw_templ.c
@@ -333,6 +333,11 @@ __isl_give PW *FN(PW,neg)(__isl_take PW *pw)
return pw;
}
+
+__isl_give PW *FN(PW,sub)(__isl_take PW *pw1, __isl_take PW *pw2)
+{
+ return FN(PW,add)(pw1, FN(PW,neg)(pw2));
+}
#endif
#ifndef NO_EVAL