Lines Matching defs:ofs
112 heap_init(struct dn_heap *h, int size, int ofs)
117 h->ofs = ofs;
128 * If ofs > 0 the position (index, int) of the element in the heap is
132 if (h->ofs > 0) \
133 *((int32_t *)((char *)(h->p[i].object) + h->ofs)) = i; \
136 * RESET_OFFSET is used for sanity checks. It sets ofs
140 if (h->ofs > 0) \
141 *((int32_t *)((char *)(h->p[i].object) + h->ofs)) = -16; \
193 if (h->ofs <= 0)
196 father = *((int *)((char *)obj + h->ofs));
239 if (h->ofs <= 0)
243 i = *((int *)((char *)object + h->ofs));
325 int ofs; /* offset of link field */
338 dn_ht_init(struct dn_ht *ht, int buckets, int ofs,
412 ht->ofs = ofs;
461 for (pp = &ht->ht[i]; (p = *pp); pp = (void **)((char *)p + ht->ofs)) {
471 *pp = *(void **)((char *)p + ht->ofs);
472 *(void **)((char *)p + ht->ofs) = NULL;
476 // printf("%s before calling new, bucket %d ofs %d\n",
477 // __FUNCTION__, i, ht->ofs);
482 *(void **)((char *)p + ht->ofs) = ht->ht[i];
504 next = *(void **)((char *)cur + ht->ofs);
511 curp = (void **)((char *)cur + ht->ofs);
543 next = *(void **)((char *)cur + ht->ofs);
550 curp = (void **)((char *)cur + ht->ofs);