summaryrefslogtreecommitdiff
path: root/isl_map.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2009-05-19 12:38:47 +0200
committerSven Verdoolaege <skimo@kotnet.org>2009-05-19 12:38:47 +0200
commitf10edd8e50bd62ed265558df974b8a3d459d793d (patch)
tree30a09e03dab362906d39488e9c15042e8c2e2dc3 /isl_map.c
parent6049041980f76d53ea910525205dccd6f2477f16 (diff)
downloadisl-f10edd8e50bd62ed265558df974b8a3d459d793d.tar.gz
isl-f10edd8e50bd62ed265558df974b8a3d459d793d.tar.bz2
isl-f10edd8e50bd62ed265558df974b8a3d459d793d.zip
add isl_set_product
Diffstat (limited to 'isl_map.c')
-rw-r--r--isl_map.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/isl_map.c b/isl_map.c
index d3ace481..818d4629 100644
--- a/isl_map.c
+++ b/isl_map.c
@@ -4550,6 +4550,14 @@ error:
return NULL;
}
+/* Given two set A and B, construct its Cartesian product A x B.
+ */
+struct isl_set *isl_set_product(struct isl_set *set1, struct isl_set *set2)
+{
+ return (struct isl_set *)isl_map_product((struct isl_map *)set1,
+ (struct isl_map *)set2);
+}
+
uint32_t isl_basic_set_get_hash(struct isl_basic_set *bset)
{
int i;