2 * Copyright 2010 INRIA Saclay
4 * Use of this software is governed by the MIT license
6 * Written by Sven Verdoolaege,
7 * INRIA Saclay - Ile-de-France, Parc Club Orsay Universite,
8 * ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France
11 #define xFN(TYPE,NAME) TYPE ## _ ## NAME
12 #define FN(TYPE,NAME) xFN(TYPE,NAME)
15 #define PEEK_SPACE peek_space
18 /* Do "obj1" and "obj2" have the same space?
20 isl_bool
FN(TYPE_PAIR
,has_equal_space
)(__isl_keep TYPE1
*obj1
,
21 __isl_keep TYPE2
*obj2
)
23 isl_space
*space1
, *space2
;
25 space1
= FN(TYPE1
,PEEK_SPACE
)(obj1
);
26 space2
= FN(TYPE2
,PEEK_SPACE
)(obj2
);
27 return isl_space_is_equal(space1
, space2
);