extract out shared isl_qpolynomial_{take,restore}_local
[isl.git] / isl_type_has_space_templ.c
blob313b27a47cce64dbb0d02b827bc2544542259710
1 /*
2 * Copyright 2013 Ecole Normale Superieure
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege,
7 * Ecole Normale Superieure, 45 rue d'Ulm, 75230 Paris, France
8 */
10 #define xFN(TYPE,NAME) TYPE ## _ ## NAME
11 #define FN(TYPE,NAME) xFN(TYPE,NAME)
13 /* Is the space of "obj" equal to "space"?
15 isl_bool FN(TYPE,has_space)(__isl_keep TYPE *obj, __isl_keep isl_space *space)
17 return isl_space_is_equal(FN(TYPE,peek_space)(obj), space);