Lines Matching refs:delta
111 punycode_uint delta, punycode_uint numpoints, int firsttime ) in adapt() argument
115 delta = firsttime ? delta / damp : delta >> 1; in adapt()
117 delta += delta / numpoints; in adapt()
119 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt()
120 delta /= base - tmin; in adapt()
123 return k + (base - tmin + 1) * delta / (delta + skew); in adapt()
135 punycode_uint n, delta, h, b, out, max_out, bias, j, m, q, k, t; in punycode_encode() local
140 delta = out = 0; in punycode_encode()
179 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode()
180 delta += (m - n) * (h + 1); in punycode_encode()
186 if (++delta == 0) return punycode_overflow; in punycode_encode()
192 for (q = delta, k = base; ; k += base) { in punycode_encode()
202 bias = adapt(delta, h + 1, h == b); in punycode_encode()
203 delta = 0; in punycode_encode()
208 ++delta, ++n; in punycode_encode()