HomeSort by: relevance | last modified time | path
    Searched refs:repIndex (Results 1 - 6 of 6) sorted by relevancy

  /src/external/bsd/zstd/dist/lib/compress/
zstd_fast.c 559 const U32 repIndex = curr + 1 - offset_1;
560 const BYTE* repMatch = (repIndex < prefixStartIndex) ?
561 dictBase + (repIndex - dictIndexDelta) :
562 base + repIndex;
567 if ((ZSTD_index_overlap_check(prefixStartIndex, repIndex))
569 const BYTE* const repMatchEnd = repIndex < prefixStartIndex ? dictEnd : iend;
794 U32 const repIndex = current2 - offset_1;
795 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base;
797 if ( ((U32)(prefixStartIndex - repIndex) >= 4) /* intentional underflow */
799 rval = MEM_read32(repBase + repIndex);
    [all...]
zstd_double_fast.c 400 const U32 repIndex = curr + 1 - offset_1;
401 const BYTE* repMatch = (repIndex < prefixLowestIndex) ?
402 dictBase + (repIndex - dictIndexDelta) :
403 base + repIndex;
407 if ((ZSTD_index_overlap_check(prefixLowestIndex, repIndex))
409 const BYTE* repMatchEnd = repIndex < prefixLowestIndex ? dictEnd : iend;
656 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */
657 const BYTE* const repBase = repIndex < prefixStartIndex ? dictBase : base;
658 const BYTE* const repMatch = repBase + repIndex;
662 if (((ZSTD_index_overlap_check(prefixStartIndex, repIndex))
    [all...]
zstd_lazy.c 1588 const U32 repIndex = (U32)(ip - base) + 1 - offset_1;
1590 && repIndex < prefixLowestIndex) ?
1591 dictBase + (repIndex - dictIndexDelta) :
1592 base + repIndex;
1593 if ((ZSTD_index_overlap_check(prefixLowestIndex, repIndex))
1595 const BYTE* repMatchEnd = repIndex < prefixLowestIndex ? dictEnd : iend;
1641 const U32 repIndex = (U32)(ip - base) - offset_1;
1642 const BYTE* repMatch = repIndex < prefixLowestIndex ?
1643 dictBase + (repIndex - dictIndexDelta) :
1644 base + repIndex;
    [all...]
zstd_opt.c 650 U32 const repIndex = curr - repOffset;
653 if (repOffset-1 /* intentional overflow, discards 0 and -1 */ < curr-dictLimit) { /* equivalent to `curr > repIndex >= dictLimit` */
657 if ((repIndex >= windowLow) & (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(ip - repOffset, minMatch))) {
660 } else { /* repIndex < dictLimit || repIndex >= curr */
662 dmsBase + repIndex - dmsIndexDelta :
663 dictBase + repIndex;
666 && ( ((repOffset-1) /*intentional overflow*/ < curr - windowLow) /* equivalent to `curr > repIndex >= windowLow` */
667 & (ZSTD_index_overlap_check(dictLimit, repIndex)) )
672 && ( ((repOffset-1) /*intentional overflow*/ < curr - (dmsLowLimit + dmsIndexDelta)) /* equivalent to `curr > repIndex >= dmsLowLimit` *
    [all...]
zstd_compress_internal.h 1426 * intentional underflow : ensure repIndex isn't overlapping dict + prefix
1429 MEM_STATIC int ZSTD_index_overlap_check(const U32 prefixLowestIndex, const U32 repIndex) {
1430 return ((U32)((prefixLowestIndex-1) - repIndex) >= 3);
  /src/external/bsd/zstd/dist/tests/
decodecorpus.c 711 U32 offset, offBase, repIndex;
748 repIndex = 2;
755 repIndex = randomRepIndex;
760 repIndex = MIN(2, randomRepIndex + 1);
780 for (r = repIndex; r > 0; r--) {
792 DISPLAYLEVEL(7, " repeat offset: %d\n", (int)repIndex);

Completed in 26 milliseconds