• Home
  • Raw
  • Download

Lines Matching refs:offset

577 		ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset);  in ZSTD_seqToCodes()
772 BIT_addBits(&blockStream, sequences[nbSeq - 1].offset, extraBits); in ZSTD_compressSequences_internal()
775 BIT_addBits(&blockStream, sequences[nbSeq - 1].offset >> extraBits, ofBits - extraBits); in ZSTD_compressSequences_internal()
777 BIT_addBits(&blockStream, sequences[nbSeq - 1].offset, ofCodeTable[nbSeq - 1]); in ZSTD_compressSequences_internal()
807 BIT_addBits(&blockStream, sequences[n].offset, extraBits); in ZSTD_compressSequences_internal()
810 BIT_addBits(&blockStream, sequences[n].offset >> extraBits, ofBits - extraBits); /* 31 */ in ZSTD_compressSequences_internal()
812 BIT_addBits(&blockStream, sequences[n].offset, ofBits); /* 31 */ in ZSTD_compressSequences_internal()
875 seqStorePtr->sequences[0].offset = offsetCode + 1; in ZSTD_storeSeq()
1048 U32 offset; in ZSTD_compressBlock_fast_generic() local
1054 offset = (U32)(ip - match); in ZSTD_compressBlock_fast_generic()
1061 offset_1 = offset; in ZSTD_compressBlock_fast_generic()
1063 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_fast_generic()
1162 U32 offset; in ZSTD_compressBlock_fast_extDict_generic() local
1169 offset = curr - matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
1171 offset_1 = offset; in ZSTD_compressBlock_fast_extDict_generic()
1172 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_fast_extDict_generic()
1299 U32 offset; in ZSTD_compressBlock_doubleFast_generic() local
1302 offset = (U32)(ip - matchLong); in ZSTD_compressBlock_doubleFast_generic()
1316 offset = (U32)(ip - match3); in ZSTD_compressBlock_doubleFast_generic()
1324 offset = (U32)(ip - match); in ZSTD_compressBlock_doubleFast_generic()
1337 offset_1 = offset; in ZSTD_compressBlock_doubleFast_generic()
1339 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_doubleFast_generic()
1445 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic() local
1447 offset = curr - matchLongIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1454 offset_1 = offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
1455 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
1462 U32 offset; in ZSTD_compressBlock_doubleFast_extDict_generic() local
1469 offset = curr + 1 - matchIndex3; in ZSTD_compressBlock_doubleFast_extDict_generic()
1479 offset = curr - matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1487 offset_1 = offset; in ZSTD_compressBlock_doubleFast_extDict_generic()
1488 ZSTD_storeSeq(seqStorePtr, ip - anchor, anchor, offset + ZSTD_REP_MOVE, mLength - MINMATCH); in ZSTD_compressBlock_doubleFast_extDict_generic()
1928 size_t offset = 0; in ZSTD_compressBlock_lazy_generic() local
1944 matchLength = ml2, start = ip, offset = offsetFound; in ZSTD_compressBlock_lazy_generic()
1956 if ((offset) && ((offset_1 > 0) & (ZSTD_read32(ip) == ZSTD_read32(ip - offset_1)))) { in ZSTD_compressBlock_lazy_generic()
1959 int const gain1 = (int)(matchLength * 3 - ZSTD_highbit32((U32)offset + 1) + 1); in ZSTD_compressBlock_lazy_generic()
1961 matchLength = mlRep, offset = 0, start = ip; in ZSTD_compressBlock_lazy_generic()
1967 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 4); in ZSTD_compressBlock_lazy_generic()
1969 matchLength = ml2, offset = offset2, start = ip; in ZSTD_compressBlock_lazy_generic()
1977 if ((offset) && ((offset_1 > 0) & (ZSTD_read32(ip) == ZSTD_read32(ip - offset_1)))) { in ZSTD_compressBlock_lazy_generic()
1980 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 1); in ZSTD_compressBlock_lazy_generic()
1982 matchLength = ml2, offset = 0, start = ip; in ZSTD_compressBlock_lazy_generic()
1988 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 7); in ZSTD_compressBlock_lazy_generic()
1990 matchLength = ml2, offset = offset2, start = ip; in ZSTD_compressBlock_lazy_generic()
2004 if (offset) { in ZSTD_compressBlock_lazy_generic()
2005 while ((start > anchor) && (start > base + offset - ZSTD_REP_MOVE) && in ZSTD_compressBlock_lazy_generic()
2006 … (start[-1] == (start-offset+ZSTD_REP_MOVE)[-1])) /* only search for offset within prefix */ in ZSTD_compressBlock_lazy_generic()
2012 offset_1 = (U32)(offset - ZSTD_REP_MOVE); in ZSTD_compressBlock_lazy_generic()
2019 ZSTD_storeSeq(seqStorePtr, litLength, anchor, (U32)offset, matchLength - MINMATCH); in ZSTD_compressBlock_lazy_generic()
2027 offset = offset_2; in ZSTD_compressBlock_lazy_generic()
2029 offset_1 = (U32)offset; /* swap repcodes */ in ZSTD_compressBlock_lazy_generic()
2089 size_t offset = 0; in ZSTD_compressBlock_lazy_extDict_generic() local
2114 matchLength = ml2, start = ip, offset = offsetFound; in ZSTD_compressBlock_lazy_extDict_generic()
2128 if (offset) { in ZSTD_compressBlock_lazy_extDict_generic()
2140 int const gain1 = (int)(matchLength * 3 - ZSTD_highbit32((U32)offset + 1) + 1); in ZSTD_compressBlock_lazy_extDict_generic()
2142 matchLength = repLength, offset = 0, start = ip; in ZSTD_compressBlock_lazy_extDict_generic()
2151 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 4); in ZSTD_compressBlock_lazy_extDict_generic()
2153 matchLength = ml2, offset = offset2, start = ip; in ZSTD_compressBlock_lazy_extDict_generic()
2163 if (offset) { in ZSTD_compressBlock_lazy_extDict_generic()
2175 int gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 1); in ZSTD_compressBlock_lazy_extDict_generic()
2177 matchLength = repLength, offset = 0, start = ip; in ZSTD_compressBlock_lazy_extDict_generic()
2186 int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 7); in ZSTD_compressBlock_lazy_extDict_generic()
2188 matchLength = ml2, offset = offset2, start = ip; in ZSTD_compressBlock_lazy_extDict_generic()
2197 if (offset) { in ZSTD_compressBlock_lazy_extDict_generic()
2198 U32 const matchIndex = (U32)((start - base) - (offset - ZSTD_REP_MOVE)); in ZSTD_compressBlock_lazy_extDict_generic()
2207 offset_1 = (U32)(offset - ZSTD_REP_MOVE); in ZSTD_compressBlock_lazy_extDict_generic()
2213 ZSTD_storeSeq(seqStorePtr, litLength, anchor, (U32)offset, matchLength - MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
2228 offset = offset_2; in ZSTD_compressBlock_lazy_extDict_generic()
2230 offset_1 = (U32)offset; /* swap offset history */ in ZSTD_compressBlock_lazy_extDict_generic()