Lines Matching refs:cur
163 struct { int base, len; } best, cur; in inet_cidr_ntop_ipv6() local
182 cur.base = -1; in inet_cidr_ntop_ipv6()
183 cur.len = 0; in inet_cidr_ntop_ipv6()
186 if (cur.base == -1) in inet_cidr_ntop_ipv6()
187 cur.base = i, cur.len = 1; in inet_cidr_ntop_ipv6()
189 cur.len++; in inet_cidr_ntop_ipv6()
191 if (cur.base != -1) { in inet_cidr_ntop_ipv6()
192 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6()
193 best = cur; in inet_cidr_ntop_ipv6()
194 cur.base = -1; in inet_cidr_ntop_ipv6()
198 if (cur.base != -1) { in inet_cidr_ntop_ipv6()
199 if (best.base == -1 || cur.len > best.len) in inet_cidr_ntop_ipv6()
200 best = cur; in inet_cidr_ntop_ipv6()