Lines Matching refs:ip
20 #define HAVE_IP(x, ip_end, ip) ((size_t)(ip_end - ip) < (x)) argument
146 const unsigned char *ip = in, *m_pos; in lzo1x_decompress_safe() local
152 if (*ip > 17) { in lzo1x_decompress_safe()
153 t = *ip++ - 17; in lzo1x_decompress_safe()
158 if (HAVE_IP(t + 1, ip_end, ip)) in lzo1x_decompress_safe()
161 *op++ = *ip++; in lzo1x_decompress_safe()
166 while ((ip < ip_end)) { in lzo1x_decompress_safe()
167 t = *ip++; in lzo1x_decompress_safe()
171 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
173 while (*ip == 0) { in lzo1x_decompress_safe()
175 ip++; in lzo1x_decompress_safe()
176 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
179 t += 15 + *ip++; in lzo1x_decompress_safe()
183 if (HAVE_IP(t + 4, ip_end, ip)) in lzo1x_decompress_safe()
186 COPY4(op, ip); in lzo1x_decompress_safe()
188 ip += 4; in lzo1x_decompress_safe()
192 COPY4(op, ip); in lzo1x_decompress_safe()
194 ip += 4; in lzo1x_decompress_safe()
199 *op++ = *ip++; in lzo1x_decompress_safe()
204 *op++ = *ip++; in lzo1x_decompress_safe()
210 t = *ip++; in lzo1x_decompress_safe()
215 m_pos -= *ip++ << 2; in lzo1x_decompress_safe()
233 m_pos -= *ip++ << 3; in lzo1x_decompress_safe()
243 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
245 while (*ip == 0) { in lzo1x_decompress_safe()
247 ip++; in lzo1x_decompress_safe()
248 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
251 t += 31 + *ip++; in lzo1x_decompress_safe()
254 m_pos -= get_unaligned_le16(ip) >> 2; in lzo1x_decompress_safe()
255 ip += 2; in lzo1x_decompress_safe()
262 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
264 while (*ip == 0) { in lzo1x_decompress_safe()
266 ip++; in lzo1x_decompress_safe()
267 if (HAVE_IP(1, ip_end, ip)) in lzo1x_decompress_safe()
270 t += 7 + *ip++; in lzo1x_decompress_safe()
272 m_pos -= get_unaligned_le16(ip) >> 2; in lzo1x_decompress_safe()
273 ip += 2; in lzo1x_decompress_safe()
280 m_pos -= *ip++ << 2; in lzo1x_decompress_safe()
321 t = ip[-2] & 3; in lzo1x_decompress_safe()
327 if (HAVE_IP(t + 1, ip_end, ip)) in lzo1x_decompress_safe()
330 *op++ = *ip++; in lzo1x_decompress_safe()
332 *op++ = *ip++; in lzo1x_decompress_safe()
334 *op++ = *ip++; in lzo1x_decompress_safe()
337 t = *ip++; in lzo1x_decompress_safe()
338 } while (ip < ip_end); in lzo1x_decompress_safe()
346 return (ip == ip_end ? LZO_E_OK : in lzo1x_decompress_safe()
347 (ip < ip_end ? LZO_E_INPUT_NOT_CONSUMED : LZO_E_INPUT_OVERRUN)); in lzo1x_decompress_safe()