Home
last modified time | relevance | path

Searched refs:repOffset (Results 1 – 2 of 2) sorted by relevance

/dragonfly/contrib/zstd/lib/dictBuilder/
H A Dzdict.c722 U32 repOffset[MAXREPOFFSET]; in ZDICT_analyzeEntropy() local
740 memset(repOffset, 0, sizeof(repOffset)); in ZDICT_analyzeEntropy()
741 repOffset[1] = repOffset[4] = repOffset[8] = 1; in ZDICT_analyzeEntropy()
758 countLit, offcodeCount, matchLengthCount, litLengthCount, repOffset, in ZDICT_analyzeEntropy()
783 ZDICT_insertSortCount(bestRepOffset, offset, repOffset[offset]); in ZDICT_analyzeEntropy()
/dragonfly/contrib/zstd/lib/compress/
H A Dzstd_opt.c567 U32 const repOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; in ZSTD_insertBtAndGetAllMatches() local
568 U32 const repIndex = curr - repOffset; in ZSTD_insertBtAndGetAllMatches()
571 …if (repOffset-1 /* intentional overflow, discards 0 and -1 */ < curr-dictLimit) { /* equivalent t… in ZSTD_insertBtAndGetAllMatches()
575 …>= windowLow) & (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(ip - repOffset, minMatch))) { in ZSTD_insertBtAndGetAllMatches()
576 repLen = (U32)ZSTD_count(ip+minMatch, ip+minMatch-repOffset, iLimit) + minMatch; in ZSTD_insertBtAndGetAllMatches()
584 …&& ( ((repOffset-1) /*intentional overflow*/ < curr - windowLow) /* equivalent to `curr > repInde… in ZSTD_insertBtAndGetAllMatches()
590 …&& ( ((repOffset-1) /*intentional overflow*/ < curr - (dmsLowLimit + dmsIndexDelta)) /* equivalen… in ZSTD_insertBtAndGetAllMatches()
598 repCode, ll0, repOffset, repLen); in ZSTD_insertBtAndGetAllMatches()