1 #ifndef UTIL_H 2 #define UTIL_H 3 4 #include <string.h> 5 6 #include <isl/space.h> 7 #include <isl/val.h> 8 9 /* Compare the prefix of "s" to "prefix" up to the length of "prefix". 10 */ prefixcmp(const char * s,const char * prefix)11static inline int prefixcmp(const char *s, const char *prefix) 12 { 13 return strncmp(s, prefix, strlen(prefix)); 14 } 15 16 __isl_give isl_multi_val *ppcg_multi_val_from_int(__isl_take isl_space *space, 17 int val); 18 __isl_give isl_multi_val *ppcg_multi_val_from_int_list( 19 __isl_take isl_space *space, int *list); 20 __isl_give isl_multi_pw_aff *ppcg_size_from_extent(__isl_take isl_set *set); 21 22 #endif 23