Lines Matching refs:ip

25     const BYTE* ip = base + ms->nextToUpdate;  in ZSTD_fillDoubleHashTable()  local
33 for (; ip + fastHashFillStep - 1 <= iend; ip += fastHashFillStep) { in ZSTD_fillDoubleHashTable()
34 U32 const curr = (U32)(ip - base); in ZSTD_fillDoubleHashTable()
37 size_t const smHash = ZSTD_hashPtr(ip + i, hBitsS, mls); in ZSTD_fillDoubleHashTable()
38 size_t const lgHash = ZSTD_hashPtr(ip + i, hBitsL, 8); in ZSTD_fillDoubleHashTable()
92 const BYTE* ip = istart; /* the current position */ in ZSTD_compressBlock_doubleFast_noDict_generic() local
98 ip += ((ip - prefixLowest) == 0); in ZSTD_compressBlock_doubleFast_noDict_generic()
100 U32 const current = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_noDict_generic()
110 nextStep = ip + kStepIncr; in ZSTD_compressBlock_doubleFast_noDict_generic()
111 ip1 = ip + step; in ZSTD_compressBlock_doubleFast_noDict_generic()
117 hl0 = ZSTD_hashPtr(ip, hBitsL, 8); in ZSTD_compressBlock_doubleFast_noDict_generic()
123 const size_t hs0 = ZSTD_hashPtr(ip, hBitsS, mls); in ZSTD_compressBlock_doubleFast_noDict_generic()
125 curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
131 if ((offset_1 > 0) & (MEM_read32(ip+1-offset_1) == MEM_read32(ip+1))) { in ZSTD_compressBlock_doubleFast_noDict_generic()
132 mLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4; in ZSTD_compressBlock_doubleFast_noDict_generic()
133 ip++; in ZSTD_compressBlock_doubleFast_noDict_generic()
134 … ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_REPCODE_1, mLength); in ZSTD_compressBlock_doubleFast_noDict_generic()
142 if (MEM_read64(matchl0) == MEM_read64(ip)) { in ZSTD_compressBlock_doubleFast_noDict_generic()
143 mLength = ZSTD_count(ip+8, matchl0+8, iend) + 8; in ZSTD_compressBlock_doubleFast_noDict_generic()
144 offset = (U32)(ip-matchl0); in ZSTD_compressBlock_doubleFast_noDict_generic()
145 …while (((ip>anchor) & (matchl0>prefixLowest)) && (ip[-1] == matchl0[-1])) { ip--; matchl0--; mLeng… in ZSTD_compressBlock_doubleFast_noDict_generic()
155 if (MEM_read32(matchs0) == MEM_read32(ip)) { in ZSTD_compressBlock_doubleFast_noDict_generic()
166 ip = ip1; in ZSTD_compressBlock_doubleFast_noDict_generic()
173 PREFETCH_L1(ip+256); in ZSTD_compressBlock_doubleFast_noDict_generic()
190 ip = ip1; in ZSTD_compressBlock_doubleFast_noDict_generic()
191 mLength = ZSTD_count(ip+8, matchl1+8, iend) + 8; in ZSTD_compressBlock_doubleFast_noDict_generic()
192 offset = (U32)(ip-matchl1); in ZSTD_compressBlock_doubleFast_noDict_generic()
193 …while (((ip>anchor) & (matchl1>prefixLowest)) && (ip[-1] == matchl1[-1])) { ip--; matchl1--; mLeng… in ZSTD_compressBlock_doubleFast_noDict_generic()
199 mLength = ZSTD_count(ip+4, matchs0+4, iend) + 4; in ZSTD_compressBlock_doubleFast_noDict_generic()
200 offset = (U32)(ip - matchs0); in ZSTD_compressBlock_doubleFast_noDict_generic()
201 …while (((ip>anchor) & (matchs0>prefixLowest)) && (ip[-1] == matchs0[-1])) { ip--; matchs0--; mLeng… in ZSTD_compressBlock_doubleFast_noDict_generic()
220 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); in ZSTD_compressBlock_doubleFast_noDict_generic()
224 ip += mLength; in ZSTD_compressBlock_doubleFast_noDict_generic()
225 anchor = ip; in ZSTD_compressBlock_doubleFast_noDict_generic()
227 if (ip <= ilimit) { in ZSTD_compressBlock_doubleFast_noDict_generic()
232 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
234 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
238 while ( (ip <= ilimit) in ZSTD_compressBlock_doubleFast_noDict_generic()
240 & (MEM_read32(ip) == MEM_read32(ip - offset_2)) )) { in ZSTD_compressBlock_doubleFast_noDict_generic()
242 size_t const rLength = ZSTD_count(ip+4, ip+4-offset_2, iend) + 4; in ZSTD_compressBlock_doubleFast_noDict_generic()
244 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
245 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_noDict_generic()
247 ip += rLength; in ZSTD_compressBlock_doubleFast_noDict_generic()
248 anchor = ip; in ZSTD_compressBlock_doubleFast_noDict_generic()
269 const BYTE* ip = istart; in ZSTD_compressBlock_doubleFast_dictMatchState_generic() local
291 const U32 dictAndPrefixLength = (U32)((ip - prefixLowest) + (dictEnd - dictStart)); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
299 ip += (dictAndPrefixLength == 0); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
307 while (ip < ilimit) { /* < instead of <=, because repcode check at (ip+1) */ in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
310 size_t const h2 = ZSTD_hashPtr(ip, hBitsL, 8); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
311 size_t const h = ZSTD_hashPtr(ip, hBitsS, mls); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
312 size_t const dictHL = ZSTD_hashPtr(ip, dictHBitsL, 8); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
313 size_t const dictHS = ZSTD_hashPtr(ip, dictHBitsS, mls); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
314 U32 const curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
327 && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
329 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixLowest) + 4; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
330 ip++; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
331 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_REPCODE_1, mLength); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
337 if (MEM_read64(matchLong) == MEM_read64(ip)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
338 mLength = ZSTD_count(ip+8, matchLong+8, iend) + 8; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
339 offset = (U32)(ip-matchLong); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
340 …while (((ip>anchor) & (matchLong>prefixLowest)) && (ip[-1] == matchLong[-1])) { ip--; matchLong--;… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
349 if (dictMatchL > dictStart && MEM_read64(dictMatchL) == MEM_read64(ip)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
350 mLength = ZSTD_count_2segments(ip+8, dictMatchL+8, iend, dictEnd, prefixLowest) + 8; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
352 …while (((ip>anchor) & (dictMatchL>dictStart)) && (ip[-1] == dictMatchL[-1])) { ip--; dictMatchL--;… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
358 if (MEM_read32(match) == MEM_read32(ip)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
367 if (match > dictStart && MEM_read32(match) == MEM_read32(ip)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
371 ip += ((ip-anchor) >> kSearchStrength) + 1; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
373 PREFETCH_L1(ip+256); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
379 { size_t const hl3 = ZSTD_hashPtr(ip+1, hBitsL, 8); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
380 size_t const dictHLNext = ZSTD_hashPtr(ip+1, dictHBitsL, 8); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
387 if (MEM_read64(matchL3) == MEM_read64(ip+1)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
388 mLength = ZSTD_count(ip+9, matchL3+8, iend) + 8; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
389 ip++; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
390 offset = (U32)(ip-matchL3); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
391 …while (((ip>anchor) & (matchL3>prefixLowest)) && (ip[-1] == matchL3[-1])) { ip--; matchL3--; mLeng… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
399 if (dictMatchL3 > dictStart && MEM_read64(dictMatchL3) == MEM_read64(ip+1)) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
400 … mLength = ZSTD_count_2segments(ip+1+8, dictMatchL3+8, iend, dictEnd, prefixLowest) + 8; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
401 ip++; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
403 …while (((ip>anchor) & (dictMatchL3>dictStart)) && (ip[-1] == dictMatchL3[-1])) { ip--; dictMatchL3… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
409 mLength = ZSTD_count_2segments(ip+4, match+4, iend, dictEnd, prefixLowest) + 4; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
411 …while (((ip>anchor) & (match>dictStart)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; } /… in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
413 mLength = ZSTD_count(ip+4, match+4, iend) + 4; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
414 offset = (U32)(ip - match); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
415 …while (((ip>anchor) & (match>prefixLowest)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; … in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
422 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
426 ip += mLength; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
427 anchor = ip; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
429 if (ip <= ilimit) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
434 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
436 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
440 while (ip <= ilimit) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
441 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
447 && (MEM_read32(repMatch2) == MEM_read32(ip)) ) { in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
449 …size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixLowest) + 4; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
452 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = current2; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
453 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = current2; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
454 ip += repLength2; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
455 anchor = ip; in ZSTD_compressBlock_doubleFast_dictMatchState_generic()
541 const BYTE* ip = istart; in ZSTD_compressBlock_doubleFast_extDict_generic() local
564 while (ip < ilimit) { /* < instead of <=, because (ip+1) */ in ZSTD_compressBlock_doubleFast_extDict_generic()
565 const size_t hSmall = ZSTD_hashPtr(ip, hBitsS, mls); in ZSTD_compressBlock_doubleFast_extDict_generic()
570 const size_t hLong = ZSTD_hashPtr(ip, hBitsL, 8); in ZSTD_compressBlock_doubleFast_extDict_generic()
575 const U32 curr = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
584 && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) { in ZSTD_compressBlock_doubleFast_extDict_generic()
586 mLength = ZSTD_count_2segments(ip+1+4, repMatch+4, iend, repMatchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
587 ip++; in ZSTD_compressBlock_doubleFast_extDict_generic()
588 ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_REPCODE_1, mLength); in ZSTD_compressBlock_doubleFast_extDict_generic()
590 if ((matchLongIndex > dictStartIndex) && (MEM_read64(matchLong) == MEM_read64(ip))) { in ZSTD_compressBlock_doubleFast_extDict_generic()
594 mLength = ZSTD_count_2segments(ip+8, matchLong+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic()
596 …while (((ip>anchor) & (matchLong>lowMatchPtr)) && (ip[-1] == matchLong[-1])) { ip--; matchLong--; … in ZSTD_compressBlock_doubleFast_extDict_generic()
599 … ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); in ZSTD_compressBlock_doubleFast_extDict_generic()
601 } else if ((matchIndex > dictStartIndex) && (MEM_read32(match) == MEM_read32(ip))) { in ZSTD_compressBlock_doubleFast_extDict_generic()
602 size_t const h3 = ZSTD_hashPtr(ip+1, hBitsL, 8); in ZSTD_compressBlock_doubleFast_extDict_generic()
608 if ( (matchIndex3 > dictStartIndex) && (MEM_read64(match3) == MEM_read64(ip+1)) ) { in ZSTD_compressBlock_doubleFast_extDict_generic()
611 mLength = ZSTD_count_2segments(ip+9, match3+8, iend, matchEnd, prefixStart) + 8; in ZSTD_compressBlock_doubleFast_extDict_generic()
612 ip++; in ZSTD_compressBlock_doubleFast_extDict_generic()
614 …while (((ip>anchor) & (match3>lowMatchPtr)) && (ip[-1] == match3[-1])) { ip--; match3--; mLength++… in ZSTD_compressBlock_doubleFast_extDict_generic()
618 mLength = ZSTD_count_2segments(ip+4, match+4, iend, matchEnd, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
620 …while (((ip>anchor) & (match>lowMatchPtr)) && (ip[-1] == match[-1])) { ip--; match--; mLength++; }… in ZSTD_compressBlock_doubleFast_extDict_generic()
624 … ZSTD_storeSeq(seqStore, (size_t)(ip-anchor), anchor, iend, STORE_OFFSET(offset), mLength); in ZSTD_compressBlock_doubleFast_extDict_generic()
627 ip += ((ip-anchor) >> kSearchStrength) + 1; in ZSTD_compressBlock_doubleFast_extDict_generic()
632 ip += mLength; in ZSTD_compressBlock_doubleFast_extDict_generic()
633 anchor = ip; in ZSTD_compressBlock_doubleFast_extDict_generic()
635 if (ip <= ilimit) { in ZSTD_compressBlock_doubleFast_extDict_generic()
640 hashLong[ZSTD_hashPtr(ip-2, hBitsL, 8)] = (U32)(ip-2-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
642 hashSmall[ZSTD_hashPtr(ip-1, hBitsS, mls)] = (U32)(ip-1-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
646 while (ip <= ilimit) { in ZSTD_compressBlock_doubleFast_extDict_generic()
647 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_doubleFast_extDict_generic()
652 && (MEM_read32(repMatch2) == MEM_read32(ip)) ) { in ZSTD_compressBlock_doubleFast_extDict_generic()
654 … size_t const repLength2 = ZSTD_count_2segments(ip+4, repMatch2+4, iend, repEnd2, prefixStart) + 4; in ZSTD_compressBlock_doubleFast_extDict_generic()
657 hashSmall[ZSTD_hashPtr(ip, hBitsS, mls)] = current2; in ZSTD_compressBlock_doubleFast_extDict_generic()
658 hashLong[ZSTD_hashPtr(ip, hBitsL, 8)] = current2; in ZSTD_compressBlock_doubleFast_extDict_generic()
659 ip += repLength2; in ZSTD_compressBlock_doubleFast_extDict_generic()
660 anchor = ip; in ZSTD_compressBlock_doubleFast_extDict_generic()