Lines Matching refs:ndx
126 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx)
134 if (bp[ndx + 1] < REAL_KEY)
136 if (ndx != 1)
137 newoff = bp[ndx - 1];
140 pairlen = newoff - bp[ndx + 1];
142 if (ndx != (n - 1)) {
147 memmove(dst, src, bp[ndx + 1] - OFFSET(bp));
150 for (i = ndx + 2; i <= n; i += 2) {
159 if (ndx == hashp->cndx) {
189 int n, ndx, retval;
210 for (n = 1, ndx = 1; n < ino[0]; n += 2) {
229 ino[ndx] = copyto + ino[n] - ino[n + 1];
230 ino[ndx + 1] = copyto;
233 ndx += 2;
470 u_int16_t *sp, ndx, ovfl_num;
495 ndx = sp[0];
501 sp[ndx + 4] = OFFSET(sp);
502 sp[ndx + 3] = FREESPACE(sp) - OVFLSIZE;
503 sp[ndx + 1] = ovfl_num;
504 sp[ndx + 2] = OVFLPAGE;
505 sp[0] = ndx + 2;
620 __ibitmap(HTAB *hashp, int pnum, int nbits, int ndx)
635 hashp->BITMAPS[ndx] = (u_int16_t)pnum;
636 hashp->mapp[ndx] = ip;
813 u_int16_t ndx;
819 ndx = (((u_int16_t)addr) >> SPLITSHIFT);
821 (ndx ? hashp->SPARES[ndx - 1] : 0) + (addr & SPLITMASK) - 1;
907 fetch_bitmap(HTAB *hashp, int ndx)
909 if (ndx >= hashp->nmaps)
911 if ((hashp->mapp[ndx] = (u_int32_t *)malloc(hashp->BSIZE)) == NULL)
914 (char *)hashp->mapp[ndx], hashp->BITMAPS[ndx], 0, 1, 1)) {
915 free(hashp->mapp[ndx]);
918 return (hashp->mapp[ndx]);