Lines Matching defs:NBUCKETS
35 #define NBUCKETS 127
57 #define BY_INDEX(i) (BY_DATA(i) + NBUCKETS)
86 s = pa_xmalloc0(PA_ALIGN(sizeof(pa_idxset)) + NBUCKETS*2*sizeof(struct idxset_entry*));
120 unsigned hash = s->hash_func(e->data) % NBUCKETS;
131 BY_INDEX(s)[e->idx % NBUCKETS] = e->index_next;
150 pa_assert(hash < NBUCKETS);
163 pa_assert(hash < NBUCKETS);
178 hash = s->hash_func(p) % NBUCKETS;
200 hash = e->idx % NBUCKETS;
236 hash = idx % NBUCKETS;
250 hash = s->hash_func(p) % NBUCKETS;
268 hash = idx % NBUCKETS;
286 hash = s->hash_func(data) % NBUCKETS;
321 hash = *idx % NBUCKETS;
413 hash = *idx % NBUCKETS;
434 hash = *idx % NBUCKETS;