Lines Matching refs:cp
249 char *cp = trial, *cp2 = leaf->rn_key, *cp3 = leaf->rn_mask;
251 int length = min(*(u_char *)cp, *(u_char *)cp2);
257 cplim = cp + length; cp3 += skip; cp2 += skip;
258 for (cp += skip; cp < cplim; cp++, cp2++, cp3++)
259 if ((*cp ^ *cp2) & *cp3)
277 caddr_t cp = v, cp2;
280 int off = t->rn_offset, vlen = *(u_char *)cp, matched_off;
288 if (t->rn_bmask & cp[t->rn_offset])
306 cp += off; cp2 = t->rn_key + off; cplim = v + vlen;
307 for (; cp < cplim; cp++, cp2++)
308 if (*cp != *cp2)
335 test = (*cp ^ *cp2) & 0xff; /* find first bit that differs */
339 matched_off = cp - v;
428 caddr_t cp = v + head_off;
439 while (cp < cplim)
440 if (*cp2++ != *cp++)
446 cmp_res = (cp[-1] ^ cp2[-1]) & 0xff;
447 for (b = (cp - v) << 3; cmp_res; b--)
452 cp = v;
455 if (cp[x->rn_offset] & x->rn_bmask)
467 if ((cp[p->rn_offset] & p->rn_bmask) == 0)
473 if ((cp[t->rn_offset] & t->rn_bmask) == 0) {
492 caddr_t cp, cplim;
511 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0;)
512 cp--;
513 mlen = cp - addmask_key;
531 netmask = cp = (caddr_t)(x + 2);
532 Bcopy(addmask_key, cp, mlen);
533 x = rn_insert(cp, mask_rnhead, &maskduplicated, x);
544 for (cp = netmask + skip; (cp < cplim) && *(u_char *)cp == 0xff;)
545 cp++;
546 if (cp != cplim) {
547 for (j = 0x80; (j & *cp) != 0; j >>= 1)
549 if (*cp != normal_chars[b] || cp != (cplim - 1))
552 b += (cp - netmask) << 3;
1152 char *cp, *cplim;
1170 rn_ones = cp = rn_zeros + max_keylen;
1172 while (cp < cplim)
1173 *cp++ = -1;