Home | History | Annotate | Download | only in liblzf

Lines Matching defs:ip

109   const u8 *ip = (const u8 *)in_data;
111 const u8 *in_end = ip + in_len;
139 hval = FRST (ip);
140 while (ip < in_end - 2)
144 hval = NEXT (hval, ip);
146 ref = *hslot + LZF_HSLOT_BIAS; *hslot = ip - LZF_HSLOT_BIAS;
150 && ref < ip /* the next test will actually take care of this, but this is faster */
152 && (off = ip - ref - 1) < MAX_OFF
154 && ref[2] == ip[2]
156 && ((ref[1] << 8) | ref[0]) == ((ip[1] << 8) | ip[0])
158 && *(u16 *)ref == *(u16 *)ip
164 unsigned int maxlen = in_end - ip - len;
178 len++; if (ref [len] != ip [len]) break;
179 len++; if (ref [len] != ip [len]) break;
180 len++; if (ref [len] != ip [len]) break;
181 len++; if (ref [len] != ip [len]) break;
183 len++; if (ref [len] != ip [len]) break;
184 len++; if (ref [len] != ip [len]) break;
185 len++; if (ref [len] != ip [len]) break;
186 len++; if (ref [len] != ip [len]) break;
188 len++; if (ref [len] != ip [len]) break;
189 len++; if (ref [len] != ip [len]) break;
190 len++; if (ref [len] != ip [len]) break;
191 len++; if (ref [len] != ip [len]) break;
193 len++; if (ref [len] != ip [len]) break;
194 len++; if (ref [len] != ip [len]) break;
195 len++; if (ref [len] != ip [len]) break;
196 len++; if (ref [len] != ip [len]) break;
201 while (len < maxlen && ref[len] == ip[len]);
207 ip++;
223 ip += len + 1;
225 if (expect_false (ip >= in_end - 2))
229 --ip;
231 --ip;
233 hval = FRST (ip);
235 hval = NEXT (hval, ip);
236 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS;
237 ip++;
240 hval = NEXT (hval, ip);
241 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS;
242 ip++;
245 ip -= len + 1;
249 hval = NEXT (hval, ip);
250 htab[IDX (hval)] = ip - LZF_HSLOT_BIAS;
251 ip++;
262 lit++; *op++ = *ip++;
275 while (ip < in_end)
277 lit++; *op++ = *ip++;