extract out isl_multi_gist.c and isl_multi_intersect.c
[isl.git] / isl_multi_gist.c
blob6ca3fbf4be8f58b219ba499bd6e14ac26c17bf01
1 /*
2 * Copyright 2011 Sven Verdoolaege
3 * Copyright 2012-2013 Ecole Normale Superieure
5 * Use of this software is governed by the MIT license
7 * Written by Sven Verdoolaege,
8 * Ecole Normale Superieure, 45 rue d’Ulm, 75230 Paris, France
9 */
11 #include <isl_multi_macro.h>
13 /* Compute the gist of "multi" with respect to the domain constraints
14 * of "context".
16 __isl_give MULTI(BASE) *FN(MULTI(BASE),gist)(__isl_take MULTI(BASE) *multi,
17 __isl_take isl_set *context)
19 return FN(MULTI(BASE),apply_set)(multi, context, &FN(EL,gist));
22 /* Compute the gist of "multi" with respect to the parameter constraints
23 * of "context".
25 __isl_give MULTI(BASE) *FN(MULTI(BASE),gist_params)(
26 __isl_take MULTI(BASE) *multi, __isl_take isl_set *context)
28 return FN(MULTI(BASE),apply_set)(multi, context, &FN(EL,gist_params));