Lines Matching refs:ip

130 FORCE_INLINE void LZ4HC_Insert (LZ4HC_Data_Structure* hc4, const BYTE* ip)  in LZ4HC_Insert()  argument
135 const U32 target = (U32)(ip - base); in LZ4HC_Insert()
153 const BYTE* ip, const BYTE* const iLimit, in LZ4HC_InsertAndFindBestMatch() argument
162 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndFindBestMatch()
169 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndFindBestMatch()
170 matchIndex = HashTable[LZ4HC_hashPtr(ip)]; in LZ4HC_InsertAndFindBestMatch()
178 if (*(match+ml) == *(ip+ml) in LZ4HC_InsertAndFindBestMatch()
179 && (LZ4_read32(match) == LZ4_read32(ip))) in LZ4HC_InsertAndFindBestMatch()
181 size_t mlt = LZ4_count(ip+MINMATCH, match+MINMATCH, iLimit) + MINMATCH; in LZ4HC_InsertAndFindBestMatch()
188 if (LZ4_read32(match) == LZ4_read32(ip)) in LZ4HC_InsertAndFindBestMatch()
191 const BYTE* vLimit = ip + (dictLimit - matchIndex); in LZ4HC_InsertAndFindBestMatch()
193 mlt = LZ4_count(ip+MINMATCH, match+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndFindBestMatch()
194 if ((ip+mlt == vLimit) && (vLimit < iLimit)) in LZ4HC_InsertAndFindBestMatch()
195 mlt += LZ4_count(ip+mlt, base+dictLimit, iLimit); in LZ4HC_InsertAndFindBestMatch()
208 const BYTE* ip, in LZ4HC_InsertAndGetWiderMatch() argument
220 …const U32 lowLimit = (hc4->lowLimit + 64 KB > (U32)(ip-base)) ? hc4->lowLimit : (U32)(ip - base) -… in LZ4HC_InsertAndGetWiderMatch()
225 int delta = (int)(ip-iLowLimit); in LZ4HC_InsertAndGetWiderMatch()
229 LZ4HC_Insert(hc4, ip); in LZ4HC_InsertAndGetWiderMatch()
230 matchIndex = HashTable[LZ4HC_hashPtr(ip)]; in LZ4HC_InsertAndGetWiderMatch()
239 if (LZ4_read32(match) == LZ4_read32(ip)) in LZ4HC_InsertAndGetWiderMatch()
241 const BYTE* startt = ip; in LZ4HC_InsertAndGetWiderMatch()
243 … const BYTE* const matchEnd = ip + MINMATCH + LZ4_count(ip+MINMATCH, match+MINMATCH, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
258 if (LZ4_read32(match) == LZ4_read32(ip)) in LZ4HC_InsertAndGetWiderMatch()
262 const BYTE* vLimit = ip + (dictLimit - matchIndex); in LZ4HC_InsertAndGetWiderMatch()
264 mlt = LZ4_count(ip+MINMATCH, match+MINMATCH, vLimit) + MINMATCH; in LZ4HC_InsertAndGetWiderMatch()
265 if ((ip+mlt == vLimit) && (vLimit < iHighLimit)) in LZ4HC_InsertAndGetWiderMatch()
266 mlt += LZ4_count(ip+mlt, base+dictLimit, iHighLimit); in LZ4HC_InsertAndGetWiderMatch()
267 …while ((ip+back > iLowLimit) && (matchIndex+back > lowLimit) && (ip[back-1] == match[back-1])) bac… in LZ4HC_InsertAndGetWiderMatch()
269 …t)mlt > longest) { longest = (int)mlt; *matchpos = base + matchIndex + back; *startpos = ip+back; } in LZ4HC_InsertAndGetWiderMatch()
287 const BYTE** ip, in LZ4HC_encodeSequence() argument
299 …teral : %u -- match : %u -- offset : %u\n", (U32)(*ip - *anchor), (U32)matchLength, (U32)(*ip-… in LZ4HC_encodeSequence()
303 length = (int)(*ip - *anchor); in LZ4HC_encodeSequence()
314 LZ4_writeLE16(*op, (U16)(*ip-match)); *op += 2; in LZ4HC_encodeSequence()
323 *ip += matchLength; in LZ4HC_encodeSequence()
324 *anchor = *ip; in LZ4HC_encodeSequence()
341 const BYTE* ip = (const BYTE*) source; in LZ4HC_compress_generic() local
342 const BYTE* anchor = ip; in LZ4HC_compress_generic()
343 const BYTE* const iend = ip + inputSize; in LZ4HC_compress_generic()
367 ip++; in LZ4HC_compress_generic()
370 while (ip < mflimit) in LZ4HC_compress_generic()
372 ml = LZ4HC_InsertAndFindBestMatch (ctx, ip, matchlimit, (&ref), maxNbAttempts); in LZ4HC_compress_generic()
373 if (!ml) { ip++; continue; } in LZ4HC_compress_generic()
376 start0 = ip; in LZ4HC_compress_generic()
381 if (ip+ml < mflimit) in LZ4HC_compress_generic()
382 …ml2 = LZ4HC_InsertAndGetWiderMatch(ctx, ip + ml - 2, ip + 1, matchlimit, ml, &ref2, &start2, maxNb… in LZ4HC_compress_generic()
387 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_generic()
391 if (start0 < ip) in LZ4HC_compress_generic()
393 if (start2 < ip + ml0) /* empirical */ in LZ4HC_compress_generic()
395 ip = start0; in LZ4HC_compress_generic()
402 if ((start2 - ip) < 3) /* First Match too small : removed */ in LZ4HC_compress_generic()
405 ip = start2; in LZ4HC_compress_generic()
416 if ((start2 - ip) < OPTIMAL_ML) in LZ4HC_compress_generic()
421 if (ip+new_ml > start2 + ml2 - MINMATCH) new_ml = (int)(start2 - ip) + ml2 - MINMATCH; in LZ4HC_compress_generic()
422 correction = new_ml - (int)(start2 - ip); in LZ4HC_compress_generic()
439 if (start2 < ip+ml) ml = (int)(start2 - ip); in LZ4HC_compress_generic()
441 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_generic()
442 ip = start2; in LZ4HC_compress_generic()
443 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml2, ref2, limit, oend)) return 0; in LZ4HC_compress_generic()
447 if (start3 < ip+ml+3) /* Not enough space for match 2 : remove it */ in LZ4HC_compress_generic()
449 … if (start3 >= (ip+ml)) /* can write Seq1 immediately ==> Seq2 is removed, so Seq3 becomes Seq1 */ in LZ4HC_compress_generic()
451 if (start2 < ip+ml) in LZ4HC_compress_generic()
453 int correction = (int)(ip+ml - start2); in LZ4HC_compress_generic()
465 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_generic()
466 ip = start3; in LZ4HC_compress_generic()
486 if (start2 < ip+ml) in LZ4HC_compress_generic()
488 if ((start2 - ip) < (int)ML_MASK) in LZ4HC_compress_generic()
492 if (ip + ml > start2 + ml2 - MINMATCH) ml = (int)(start2 - ip) + ml2 - MINMATCH; in LZ4HC_compress_generic()
493 correction = ml - (int)(start2 - ip); in LZ4HC_compress_generic()
503 ml = (int)(start2 - ip); in LZ4HC_compress_generic()
506 if (LZ4HC_encodeSequence(&ip, &op, &anchor, ml, ref, limit, oend)) return 0; in LZ4HC_compress_generic()
508 ip = start2; in LZ4HC_compress_generic()