Lines Matching defs:ip
23 #define HAVE_IP(x, ip_end, ip) ((size_t)(ip_end - ip) < (x))
35 const unsigned char *ip = in, *m_pos;
41 if (*ip > 17) {
42 t = *ip++ - 17;
47 if (HAVE_IP(t + 1, ip_end, ip))
50 *op++ = *ip++;
55 while ((ip < ip_end)) {
56 t = *ip++;
60 if (HAVE_IP(1, ip_end, ip))
62 while (*ip == 0) {
64 ip++;
65 if (HAVE_IP(1, ip_end, ip))
68 t += 15 + *ip++;
72 if (HAVE_IP(t + 4, ip_end, ip))
75 COPY4(op, ip);
77 ip += 4;
81 COPY4(op, ip);
83 ip += 4;
88 *op++ = *ip++;
93 *op++ = *ip++;
99 t = *ip++;
104 m_pos -= *ip++ << 2;
122 m_pos -= *ip++ << 3;
132 if (HAVE_IP(1, ip_end, ip))
134 while (*ip == 0) {
136 ip++;
137 if (HAVE_IP(1, ip_end, ip))
140 t += 31 + *ip++;
143 m_pos -= get_unaligned_le16(ip) >> 2;
144 ip += 2;
151 if (HAVE_IP(1, ip_end, ip))
153 while (*ip == 0) {
155 ip++;
156 if (HAVE_IP(1, ip_end, ip))
159 t += 7 + *ip++;
161 m_pos -= get_unaligned_le16(ip) >> 2;
162 ip += 2;
169 m_pos -= *ip++ << 2;
210 t = ip[-2] & 3;
216 if (HAVE_IP(t + 1, ip_end, ip))
219 *op++ = *ip++;
221 *op++ = *ip++;
223 *op++ = *ip++;
226 t = *ip++;
227 } while (ip < ip_end);
235 return (ip == ip_end ? LZO_E_OK :
236 (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN));