Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/contrib/zstd/lib/dictBuilder/
Dzdict.c698 U32 repOffset[MAXREPOFFSET]; in ZDICT_analyzeEntropy() local
724 memset(repOffset, 0, sizeof(repOffset)); in ZDICT_analyzeEntropy()
725 repOffset[1] = repOffset[4] = repOffset[8] = 1; in ZDICT_analyzeEntropy()
739 countLit, offcodeCount, matchLengthCount, litLengthCount, repOffset, in ZDICT_analyzeEntropy()
764 ZDICT_insertSortCount(bestRepOffset, offset, repOffset[offset]); in ZDICT_analyzeEntropy()
/freebsd-12-stable/sys/contrib/zstd/lib/compress/
Dzstd_opt.c443 U32 const repOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; in ZSTD_insertBtAndGetAllMatches() local
444 U32 const repIndex = current - repOffset; in ZSTD_insertBtAndGetAllMatches()
447 …if (repOffset-1 /* intentional overflow, discards 0 and -1 */ < current-dictLimit) { /* equivalen… in ZSTD_insertBtAndGetAllMatches()
448 … if (ZSTD_readMINMATCH(ip, minMatch) == ZSTD_readMINMATCH(ip - repOffset, minMatch)) { in ZSTD_insertBtAndGetAllMatches()
449 repLen = (U32)ZSTD_count(ip+minMatch, ip+minMatch-repOffset, iLimit) + minMatch; in ZSTD_insertBtAndGetAllMatches()
455 …&& ( ((repOffset-1) /*intentional overflow*/ < current - windowLow) /* equivalent to `current > r… in ZSTD_insertBtAndGetAllMatches()