10#ifdef YAC_OPENMP_ENABLED
34 for (
size_t i = 1; i < N; ++i) {
36 if (array[i] == prev)
continue;
41 if (pos != i) array[pos] = array[i];
58 void * a,
size_t count,
size_t size,
59 int (*compare)(
void const *,
void const *),
size_t * idx);
66#define MAX(a,b) ((a) > (b) ? (a) : (b))
70#define MIN(a,b) ((a) < (b) ? (a) : (b))
73#ifdef YAC_OPENMP_ENABLED
74#define YAC_OMP_PARALLEL _Pragma("omp parallel")
75#define YAC_OMP_FOR _Pragma("omp for")
77#define YAC_OMP_PARALLEL
add versions of standard API functions not returning on error
int yac_name_type_pair_get_type(struct yac_name_type_pair const *pairs, size_t count, char const *name)
static void yac_remove_duplicates_int(int *array, size_t *n)
void yac_qsort_index(void *a, size_t count, size_t size, int(*compare)(void const *, void const *), size_t *idx)
char const * yac_name_type_pair_get_name(struct yac_name_type_pair const *pairs, size_t count, int type)