Lines Matching refs:delta
109 punycode_uint delta, punycode_uint numpoints, int firsttime ) in adapt() argument
113 delta = firsttime ? delta / damp : delta >> 1; in adapt()
115 delta += delta / numpoints; in adapt()
117 for (k = 0; delta > ((base - tmin) * tmax) / 2; k += base) { in adapt()
118 delta /= base - tmin; in adapt()
121 return k + (base - tmin + 1) * delta / (delta + skew); in adapt()
133 punycode_uint n, delta, h, b, out, max_out, bias, j, m, q, k, t; in punycode_encode() local
138 delta = out = 0; in punycode_encode()
177 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode()
178 delta += (m - n) * (h + 1); in punycode_encode()
184 if (++delta == 0) return punycode_overflow; in punycode_encode()
190 for (q = delta, k = base; ; k += base) { in punycode_encode()
200 bias = adapt(delta, h + 1, h == b); in punycode_encode()
201 delta = 0; in punycode_encode()
206 ++delta, ++n; in punycode_encode()