/external/zstd/lib/compress/ |
D | zstd_lazy.c | 950 const U32 repIndex = (U32)(ip - base) + 1 - offset_1; in ZSTD_compressBlock_lazy_generic() local 952 && repIndex < prefixLowestIndex) ? in ZSTD_compressBlock_lazy_generic() 953 dictBase + (repIndex - dictIndexDelta) : in ZSTD_compressBlock_lazy_generic() 954 base + repIndex; in ZSTD_compressBlock_lazy_generic() 955 if (((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */) in ZSTD_compressBlock_lazy_generic() 957 const BYTE* repMatchEnd = repIndex < prefixLowestIndex ? dictEnd : iend; in ZSTD_compressBlock_lazy_generic() 993 const U32 repIndex = (U32)(ip - base) - offset_1; in ZSTD_compressBlock_lazy_generic() local 994 const BYTE* repMatch = repIndex < prefixLowestIndex ? in ZSTD_compressBlock_lazy_generic() 995 dictBase + (repIndex - dictIndexDelta) : in ZSTD_compressBlock_lazy_generic() 996 base + repIndex; in ZSTD_compressBlock_lazy_generic() [all …]
|
D | zstd_fast.c | 264 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_dictMatchState_generic() local 265 const BYTE* repMatch = (repIndex < prefixStartIndex) ? in ZSTD_compressBlock_fast_dictMatchState_generic() 266 dictBase + (repIndex - dictIndexDelta) : in ZSTD_compressBlock_fast_dictMatchState_generic() 267 base + repIndex; in ZSTD_compressBlock_fast_dictMatchState_generic() 270 …if ( ((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex isn'… in ZSTD_compressBlock_fast_dictMatchState_generic() 272 const BYTE* const repMatchEnd = repIndex < prefixStartIndex ? dictEnd : iend; in ZSTD_compressBlock_fast_dictMatchState_generic() 414 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_fast_extDict_generic() local 415 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base; in ZSTD_compressBlock_fast_extDict_generic() 416 const BYTE* const repMatch = repBase + repIndex; in ZSTD_compressBlock_fast_extDict_generic() 421 …if ( (((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow */ & (repIndex > dict… in ZSTD_compressBlock_fast_extDict_generic() [all …]
|
D | zstd_double_fast.c | 137 const U32 repIndex = curr + 1 - offset_1; in ZSTD_compressBlock_doubleFast_generic() local 139 && repIndex < prefixLowestIndex) ? in ZSTD_compressBlock_doubleFast_generic() 140 dictBase + (repIndex - dictIndexDelta) : in ZSTD_compressBlock_doubleFast_generic() 141 base + repIndex; in ZSTD_compressBlock_doubleFast_generic() 146 && ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */) in ZSTD_compressBlock_doubleFast_generic() 148 const BYTE* repMatchEnd = repIndex < prefixLowestIndex ? dictEnd : iend; in ZSTD_compressBlock_doubleFast_generic() 405 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */ in ZSTD_compressBlock_doubleFast_extDict_generic() local 406 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base; in ZSTD_compressBlock_doubleFast_extDict_generic() 407 const BYTE* const repMatch = repBase + repIndex; in ZSTD_compressBlock_doubleFast_extDict_generic() 411 …if ((((U32)((prefixStartIndex-1) - repIndex) >= 3) /* intentional underflow : ensure repIndex does… in ZSTD_compressBlock_doubleFast_extDict_generic() [all …]
|
D | zstd_opt.c | 568 U32 const repIndex = curr - repOffset; in ZSTD_insertBtAndGetAllMatches() local 575 …if ((repIndex >= windowLow) & (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(ip - repOffset… in ZSTD_insertBtAndGetAllMatches() 580 dmsBase + repIndex - dmsIndexDelta : in ZSTD_insertBtAndGetAllMatches() 581 dictBase + repIndex; in ZSTD_insertBtAndGetAllMatches() 585 …& (((U32)((dictLimit-1) - repIndex) >= 3) ) /* intentional overflow : do not test positions overla… in ZSTD_insertBtAndGetAllMatches() 591 …& ((U32)((dictLimit-1) - repIndex) >= 3) ) /* intentional overflow : do not test positions overlap… in ZSTD_insertBtAndGetAllMatches()
|
/external/lzma/Java/SevenZip/Compression/LZMA/ |
D | Encoder.java | 461 int GetPureRepPrice(int repIndex, int state, int posState) in GetPureRepPrice() argument 464 if (repIndex == 0) in GetPureRepPrice() 472 if (repIndex == 1) in GetPureRepPrice() 477 price += SevenZip.Compression.RangeCoder.Encoder.GetPrice(_isRepG2[state], repIndex - 2); in GetPureRepPrice() 483 int GetRepPrice(int repIndex, int len, int state, int posState) in GetRepPrice() argument 486 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice() 881 for (int repIndex = 0; repIndex < Base.kNumRepDistances; repIndex++) in GetOptimum() 883 int lenTest = _matchFinder.GetMatchLen(0 - 1, reps[repIndex], numAvailableBytes); in GetOptimum() 891 int curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum() 897 optimum.BackPrev = repIndex; in GetOptimum() [all …]
|
/external/lzma/CS/7zip/Compress/LZMA/ |
D | LzmaEncoder.cs | 461 UInt32 GetPureRepPrice(UInt32 repIndex, Base.State state, UInt32 posState) in GetPureRepPrice() argument 464 if (repIndex == 0) in GetPureRepPrice() 472 if (repIndex == 1) in GetPureRepPrice() 477 price += _isRepG2[state.Index].GetPrice(repIndex - 2); in GetPureRepPrice() 483 UInt32 GetRepPrice(UInt32 repIndex, UInt32 len, Base.State state, UInt32 posState) in GetRepPrice() argument 486 return price + GetPureRepPrice(repIndex, state, posState); in GetRepPrice() 881 for (UInt32 repIndex = 0; repIndex < Base.kNumRepDistances; repIndex++) in GetOptimum() 883 UInt32 lenTest = _matchFinder.GetMatchLen(0 - 1, reps[repIndex], numAvailableBytes); in GetOptimum() 891 UInt32 curAndLenPrice = repMatchPrice + GetRepPrice(repIndex, lenTest, state, posState); in GetOptimum() 897 optimum.BackPrev = repIndex; in GetOptimum() [all …]
|
/external/lzma/C/ |
D | LzmaEnc.c | 1041 static UInt32 GetPrice_PureRep(const CLzmaEnc *p, unsigned repIndex, size_t state, size_t posState) in GetPrice_PureRep() argument 1045 if (repIndex == 0) in GetPrice_PureRep() 1054 if (repIndex == 1) in GetPrice_PureRep() 1059 price += GET_PRICE(p->isRepG2[state], repIndex - 2); in GetPrice_PureRep() 1617 unsigned repIndex = 0; // 17.old in GetOptimum() local 1619 for (; repIndex < LZMA_NUM_REPS; repIndex++) in GetOptimum() 1623 const Byte *data2 = data - reps[repIndex]; in GetOptimum() 1639 price = repMatchPrice + GetPrice_PureRep(p, repIndex, state, posState); in GetOptimum() 1648 opt->dist = (UInt32)repIndex; in GetOptimum() 1655 if (repIndex == 0) startLen = len + 1; // 17.old in GetOptimum() [all …]
|
/external/zstd/tests/ |
D | decodecorpus.c | 675 U32 offset, offsetCode, repIndex; in generateSequences() local 713 repIndex = 2; in generateSequences() 719 repIndex = offsetCode; in generateSequences() 724 repIndex = MIN(2, offsetCode + 1); in generateSequences() 746 for (r = repIndex; r > 0; r--) { in generateSequences() 758 DISPLAYLEVEL(7, " repeat offset: %d\n", (int)repIndex); in generateSequences()
|