Lines Matching refs:ip

384                                               const BYTE* const ip)  in ZSTD_insertAndFindFirstIndexHash3()  argument
390 U32 const target = (U32)(ip - base); in ZSTD_insertAndFindFirstIndexHash3()
391 size_t const hash3 = ZSTD_hash3Ptr(ip, hashLog3); in ZSTD_insertAndFindFirstIndexHash3()
413 const BYTE* const ip, const BYTE* const iend, in ZSTD_insertBt1() argument
420 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBt1()
432 const U32 curr = (U32)(ip-base); in ZSTD_insertBt1()
454 assert(ip <= iend-8); /* required for h calculation */ in ZSTD_insertBt1()
487 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iend); in ZSTD_insertBt1()
490 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iend, dictEnd, prefixStart); in ZSTD_insertBt1()
501 if (ip+matchLength == iend) { /* equal : no way to know if inf or sup */ in ZSTD_insertBt1()
505 if (match[matchLength] < ip[matchLength]) { /* necessarily within buffer */ in ZSTD_insertBt1()
532 const BYTE* const ip, const BYTE* const iend, in ZSTD_updateTree_internal() argument
536 U32 const target = (U32)(ip - base); in ZSTD_updateTree_internal()
546 assert((size_t)(ip - base) <= (size_t)(U32)(-1)); in ZSTD_updateTree_internal()
551 void ZSTD_updateTree(ZSTD_matchState_t* ms, const BYTE* ip, const BYTE* iend) { in ZSTD_updateTree() argument
552 ZSTD_updateTree_internal(ms, ip, iend, ms->cParams.minMatch, ZSTD_noDict); in ZSTD_updateTree()
560 const BYTE* const ip, const BYTE* const iLimit, const ZSTD_dictMode_e dictMode, in ZSTD_insertBtAndGetAllMatches() argument
569 U32 const curr = (U32)(ip-base); in ZSTD_insertBtAndGetAllMatches()
573 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_insertBtAndGetAllMatches()
622 …if ((repIndex >= windowLow) & (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(ip - repOffset… in ZSTD_insertBtAndGetAllMatches()
623 repLen = (U32)ZSTD_count(ip+minMatch, ip+minMatch-repOffset, iLimit) + minMatch; in ZSTD_insertBtAndGetAllMatches()
633 && (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(repMatch, minMatch)) ) { in ZSTD_insertBtAndGetAllMatches()
634 …repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dictEnd, prefixStart) +… in ZSTD_insertBtAndGetAllMatches()
639 && (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(repMatch, minMatch)) ) { in ZSTD_insertBtAndGetAllMatches()
640 …repLen = (U32)ZSTD_count_2segments(ip+minMatch, repMatch+minMatch, iLimit, dmsEnd, prefixStart) + … in ZSTD_insertBtAndGetAllMatches()
651 | (ip+repLen == iLimit) ) { /* best possible */ in ZSTD_insertBtAndGetAllMatches()
657 U32 const matchIndex3 = ZSTD_insertAndFindFirstIndexHash3(ms, nextToUpdate3, ip); in ZSTD_insertBtAndGetAllMatches()
663 mlen = ZSTD_count(ip, match, iLimit); in ZSTD_insertBtAndGetAllMatches()
666 mlen = ZSTD_count_2segments(ip, match, iLimit, dictEnd, prefixStart); in ZSTD_insertBtAndGetAllMatches()
680 (ip+mlen == iLimit) ) { /* best possible length */ in ZSTD_insertBtAndGetAllMatches()
698 …if (matchIndex >= dictLimit) assert(memcmp(match, ip, matchLength) == 0); /* ensure early section… in ZSTD_insertBtAndGetAllMatches()
699 matchLength += ZSTD_count(ip+matchLength, match+matchLength, iLimit); in ZSTD_insertBtAndGetAllMatches()
702 …assert(memcmp(match, ip, matchLength) == 0); /* ensure early section of match is equal as expecte… in ZSTD_insertBtAndGetAllMatches()
703 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dictEnd, prefixStar… in ZSTD_insertBtAndGetAllMatches()
719 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
724 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
743 size_t const dmsH = ZSTD_hashPtr(ip, dmsHashLog, mls); in ZSTD_insertBtAndGetAllMatches()
751 …matchLength += ZSTD_count_2segments(ip+matchLength, match+matchLength, iLimit, dmsEnd, prefixStart… in ZSTD_insertBtAndGetAllMatches()
766 | (ip+matchLength == iLimit) /* equal : no way to know if inf or sup */) { in ZSTD_insertBtAndGetAllMatches()
771 if (match[matchLength] < ip[matchLength]) { in ZSTD_insertBtAndGetAllMatches()
799 const BYTE* ip, in ZSTD_btGetAllMatches_internal() argument
809 if (ip < ms->window.base + ms->nextToUpdate) in ZSTD_btGetAllMatches_internal()
811 ZSTD_updateTree_internal(ms, ip, iHighLimit, mls, dictMode); in ZSTD_btGetAllMatches_internal()
812 …return ZSTD_insertBtAndGetAllMatches(matches, ms, nextToUpdate3, ip, iHighLimit, dictMode, rep, ll… in ZSTD_btGetAllMatches_internal()
822 const BYTE* ip, \
829 matches, ms, nextToUpdate3, ip, iHighLimit, \
1046 const BYTE* ip = istart; in ZSTD_compressBlock_opt_generic() local
1067 ZSTD_opt_getNextMatchAndUpdateSeqStore(&optLdm, (U32)(ip-istart), (U32)(iend-ip)); in ZSTD_compressBlock_opt_generic()
1071 (U32)(ip - base), ms->window.dictLimit, ms->nextToUpdate); in ZSTD_compressBlock_opt_generic()
1074 ip += (ip==prefixStart); in ZSTD_compressBlock_opt_generic()
1077 while (ip < ilimit) { in ZSTD_compressBlock_opt_generic()
1081 { U32 const litlen = (U32)(ip - anchor); in ZSTD_compressBlock_opt_generic()
1083 … U32 nbMatches = getAllMatches(matches, ms, &nextToUpdate3, ip, iend, rep, ll0, minMatch); in ZSTD_compressBlock_opt_generic()
1085 (U32)(ip-istart), (U32)(iend - ip)); in ZSTD_compressBlock_opt_generic()
1086 if (!nbMatches) { ip++; continue; } in ZSTD_compressBlock_opt_generic()
1103 nbMatches, maxML, maxOffcode, (U32)(ip-prefixStart)); in ZSTD_compressBlock_opt_generic()
1143 const BYTE* const inr = ip + cur; in ZSTD_compressBlock_opt_generic()
1150 + (int)ZSTD_rawLiteralsCost(ip+cur-1, 1, optStatePtr, optLevel) in ZSTD_compressBlock_opt_generic()
1306ip = anchor + llen; /* last "sequence" is a bunch of literals => don't progress anchor */ in ZSTD_compressBlock_opt_generic()
1314 ip = anchor; in ZSTD_compressBlock_opt_generic()