Lines Matching refs:thresh
3692 int bestdist = 0, thisdist, thresh, maxthresh = 0;
3715 thresh = (int)(p - spnameguess) / 4 + 1;
3716 if (thresh < 3)
3717 thresh = 3;
3718 else if (thresh > 100)
3719 thresh = 100;
3720 if ((thisdist = mindist(newname, spnameguess, spnamebest)) >= thresh) {
3735 maxthresh = bestdist + thresh;
3784 spdist(char *s, char *t, int thresh)
3824 if (!thresh)
3830 return spdist(p + 2, q + 2, thresh - 1) + 1;
3832 return spdist(p + 1, q + 0, thresh - 1) + 2;
3834 return spdist(p + 0, q + 1, thresh - 1) + 2;
3847 return spdist(p + 1, q + 1, thresh - 1) + 1;
3854 return spdist(p + 1, q + 1, thresh - 1) + 2;