Lines Matching refs:U32

101 FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals)  in ZSTD_getLiteralPrice()
103 U32 price, u; in ZSTD_getLiteralPrice()
106 return ZSTD_highbit32((U32)litLength + 1) + (litLength * 6); in ZSTD_getLiteralPrice()
113 U32 const additional = litLength - ssPtr->cachedLitLength; in ZSTD_getLiteralPrice()
142 FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 of… in ZSTD_getPrice()
145 U32 price; in ZSTD_getPrice()
149 …return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + … in ZSTD_getPrice()
165 …IC void ZSTD_updatePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset,… in ZSTD_updatePrice()
167 U32 u; in ZSTD_updatePrice()
215 U32 ZSTD_insertAndFindFirstIndexHash3(ZSTD_CCtx *zc, const BYTE *ip) in ZSTD_insertAndFindFirstIndexHash3()
217 U32 *const hashTable3 = zc->hashTable3; in ZSTD_insertAndFindFirstIndexHash3()
218 U32 const hashLog3 = zc->hashLog3; in ZSTD_insertAndFindFirstIndexHash3()
220 U32 idx = zc->nextToUpdate3; in ZSTD_insertAndFindFirstIndexHash3()
221 const U32 target = zc->nextToUpdate3 = (U32)(ip - base); in ZSTD_insertAndFindFirstIndexHash3()
235 static U32 ZSTD_insertBtAndGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLi… in ZSTD_insertBtAndGetAllMatches()
236 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_insertBtAndGetAllMatches()
239 const U32 curr = (U32)(ip - base); in ZSTD_insertBtAndGetAllMatches()
240 const U32 hashLog = zc->params.cParams.hashLog; in ZSTD_insertBtAndGetAllMatches()
242 U32 *const hashTable = zc->hashTable; in ZSTD_insertBtAndGetAllMatches()
243 U32 matchIndex = hashTable[h]; in ZSTD_insertBtAndGetAllMatches()
244 U32 *const bt = zc->chainTable; in ZSTD_insertBtAndGetAllMatches()
245 const U32 btLog = zc->params.cParams.chainLog - 1; in ZSTD_insertBtAndGetAllMatches()
246 const U32 btMask = (1U << btLog) - 1; in ZSTD_insertBtAndGetAllMatches()
249 const U32 dictLimit = zc->dictLimit; in ZSTD_insertBtAndGetAllMatches()
252 const U32 btLow = btMask >= curr ? 0 : curr - btMask; in ZSTD_insertBtAndGetAllMatches()
253 const U32 windowLow = zc->lowLimit; in ZSTD_insertBtAndGetAllMatches()
254 U32 *smallerPtr = bt + 2 * (curr & btMask); in ZSTD_insertBtAndGetAllMatches()
255 U32 *largerPtr = bt + 2 * (curr & btMask) + 1; in ZSTD_insertBtAndGetAllMatches()
256 U32 matchEndIdx = curr + 8; in ZSTD_insertBtAndGetAllMatches()
257 U32 dummy32; /* to be nullified at the end */ in ZSTD_insertBtAndGetAllMatches()
258 U32 mnum = 0; in ZSTD_insertBtAndGetAllMatches()
260 const U32 minMatch = (mls == 3) ? 3 : 4; in ZSTD_insertBtAndGetAllMatches()
264 U32 const matchIndex3 = ZSTD_insertAndFindFirstIndexHash3(zc, ip); in ZSTD_insertBtAndGetAllMatches()
283 matches[mnum].len = (U32)currMl; in ZSTD_insertBtAndGetAllMatches()
296 U32 *nextPtr = bt + 2 * (matchIndex & btMask); in ZSTD_insertBtAndGetAllMatches()
314 matchEndIdx = matchIndex + (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
317 matches[mnum].len = (U32)matchLength; in ZSTD_insertBtAndGetAllMatches()
356 static U32 ZSTD_BtGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, cons… in ZSTD_BtGetAllMatches()
357 const U32 minMatchLen) in ZSTD_BtGetAllMatches()
365 static U32 ZSTD_BtGetAllMatches_selectMLS(ZSTD_CCtx *zc, /* Index table will be updated */ in ZSTD_BtGetAllMatches_selectMLS()
366 …const BYTE *ip, const BYTE *const iHighLimit, const U32 maxNbAttempts, const U32 matchLengthSearch, in ZSTD_BtGetAllMatches_selectMLS()
367 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS()
380 static U32 ZSTD_BtGetAllMatches_extDict(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLim… in ZSTD_BtGetAllMatches_extDict()
381 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_extDict()
389 static U32 ZSTD_BtGetAllMatches_selectMLS_extDict(ZSTD_CCtx *zc, /* Index table will be updated */ in ZSTD_BtGetAllMatches_selectMLS_extDict()
390 …const BYTE *ip, const BYTE *const iHighLimit, const U32 maxNbAttempts, const U32 matchLengthSearch, in ZSTD_BtGetAllMatches_selectMLS_extDict()
391 ZSTD_match_t *matches, const U32 minMatchLen) in ZSTD_BtGetAllMatches_selectMLS_extDict()
418 const U32 maxSearches = 1U << ctx->params.cParams.searchLog; in ZSTD_compressBlock_opt_generic()
419 const U32 sufficient_len = ctx->params.cParams.targetLength; in ZSTD_compressBlock_opt_generic()
420 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_opt_generic()
421 const U32 minMatch = (ctx->params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_compressBlock_opt_generic()
426 U32 offset, rep[ZSTD_REP_NUM]; in ZSTD_compressBlock_opt_generic()
433 U32 i; in ZSTD_compressBlock_opt_generic()
440 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_generic()
441 U32 u, mlen, best_mlen, best_off, litLength; in ZSTD_compressBlock_opt_generic()
444 litlen = (U32)(ip - anchor); in ZSTD_compressBlock_opt_generic()
448 U32 i, last_i = ZSTD_REP_CHECK + (ip == anchor); in ZSTD_compressBlock_opt_generic()
453 mlen = (U32)ZSTD_count(ip + minMatch, ip + minMatch - repCur, iend) + minMatch; in ZSTD_compressBlock_opt_generic()
507 U32 i; in ZSTD_compressBlock_opt_generic()
552 U32 i, last_i = ZSTD_REP_CHECK + (mlen != 1); in ZSTD_compressBlock_opt_generic()
557 mlen = (U32)ZSTD_count(inr + minMatch, inr + minMatch - repCur, iend) + minMatch; in ZSTD_compressBlock_opt_generic()
659 litLength = (U32)(ip - anchor); in ZSTD_compressBlock_opt_generic()
709 const U32 lowestIndex = ctx->lowLimit; in ZSTD_compressBlock_opt_extDict_generic()
710 const U32 dictLimit = ctx->dictLimit; in ZSTD_compressBlock_opt_extDict_generic()
715 const U32 maxSearches = 1U << ctx->params.cParams.searchLog; in ZSTD_compressBlock_opt_extDict_generic()
716 const U32 sufficient_len = ctx->params.cParams.targetLength; in ZSTD_compressBlock_opt_extDict_generic()
717 const U32 mls = ctx->params.cParams.searchLength; in ZSTD_compressBlock_opt_extDict_generic()
718 const U32 minMatch = (ctx->params.cParams.searchLength == 3) ? 3 : 4; in ZSTD_compressBlock_opt_extDict_generic()
725 U32 offset, rep[ZSTD_REP_NUM]; in ZSTD_compressBlock_opt_extDict_generic()
727 U32 i; in ZSTD_compressBlock_opt_extDict_generic()
738 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_extDict_generic()
739 U32 u, mlen, best_mlen, best_off, litLength; in ZSTD_compressBlock_opt_extDict_generic()
740 U32 curr = (U32)(ip - base); in ZSTD_compressBlock_opt_extDict_generic()
743 opt[0].litlen = (U32)(ip - anchor); in ZSTD_compressBlock_opt_extDict_generic()
747 U32 i, last_i = ZSTD_REP_CHECK + (ip == anchor); in ZSTD_compressBlock_opt_extDict_generic()
750 const U32 repIndex = (U32)(curr - repCur); in ZSTD_compressBlock_opt_extDict_generic()
754 … (((U32)((dictLimit - 1) - repIndex) >= 3) & (repIndex > lowestIndex)) /* intentional overflow */ in ZSTD_compressBlock_opt_extDict_generic()
758 …mlen = (U32)ZSTD_count_2segments(ip + minMatch, repMatch + minMatch, iend, repEnd, prefixStart) + … in ZSTD_compressBlock_opt_extDict_generic()
788 U32 i; in ZSTD_compressBlock_opt_extDict_generic()
860 U32 i, last_i = ZSTD_REP_CHECK + (mlen != 1); in ZSTD_compressBlock_opt_extDict_generic()
863 const U32 repIndex = (U32)(curr + cur - repCur); in ZSTD_compressBlock_opt_extDict_generic()
867 … (((U32)((dictLimit - 1) - repIndex) >= 3) & (repIndex > lowestIndex)) /* intentional overflow */ in ZSTD_compressBlock_opt_extDict_generic()
871 …mlen = (U32)ZSTD_count_2segments(inr + minMatch, repMatch + minMatch, iend, repEnd, prefixStart) +… in ZSTD_compressBlock_opt_extDict_generic()
973 litLength = (U32)(ip - anchor); in ZSTD_compressBlock_opt_extDict_generic()