Home
last modified time | relevance | path

Searched refs:ZSTD_highbit32 (Results 1 – 9 of 9) sorted by relevance

/dragonfly/contrib/zstd/lib/compress/
H A Dzstd_lazy.c198 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
330 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBestMatch()
988 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1002 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1009 int const gain2 = (int)(ml2*4 - ZSTD_highbit32((U32)offset2+1)); /* raw approx */ in ZSTD_compressBlock_lazy_generic()
1010 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 4); in ZSTD_compressBlock_lazy_generic()
1023 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_generic()
1045 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 7); in ZSTD_compressBlock_lazy_generic()
1289 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offset+1) + 1); in ZSTD_compressBlock_lazy_extDict_generic()
1298 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offset+1) + 4); in ZSTD_compressBlock_lazy_extDict_generic()
[all …]
H A Dzstd_compress_internal.h372 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode()
389 return (mlBase > 127) ? ZSTD_highbit32(mlBase) + ML_deltaCode : ML_Code[mlBase]; in ZSTD_MLcode()
1088 U32 const hb = ZSTD_highbit32(newStat); in ZSTD_fWeight()
H A Dzstd_opt.c43 return (ZSTD_highbit32(stat+1) * BITCOST_MULTIPLIER); in ZSTD_bitWeight()
49 U32 const hb = ZSTD_highbit32(stat); in ZSTD_fracWeight()
263 U32 const offCode = ZSTD_highbit32(offset+1); in ZSTD_getMatchPrice()
307 { U32 const offCode = ZSTD_highbit32(offsetCode+1); in ZSTD_updateStats()
H A Dzstdmt_compress.c850 U32 const nbJobsLog2 = ZSTD_highbit32(*nbJobsPtr) + 1; in ZSTDMT_createJobsTable()
1243 U32 const rsyncBits = ZSTD_highbit32(jobSizeMB) + 20; in ZSTDMT_initCStream_internal()
H A Dzstd_compress.c1169 return ZSTD_highbit32((U32)dictAndWindowSize - 1) + 1; in ZSTD_dictAndWindowLog()
1213 ZSTD_highbit32(tSize-1) + 1; in ZSTD_adjustCParams_internal()
2128 ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset); in ZSTD_seqToCodes()
3244 …offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent max… in ZSTD_loadCEntropy()
3902 … U32 const limitedSrcLog = limitedSrcSize > 1 ? ZSTD_highbit32(limitedSrcSize - 1) + 1 : 1; in ZSTD_compressBegin_usingCDict_advanced()
/dragonfly/contrib/zstd/lib/common/
H A Dzstd_internal.h419 MEM_STATIC U32 ZSTD_highbit32(U32 val) /* compress, dictBuilder, decodeCorpus */ in ZSTD_highbit32() function
/dragonfly/contrib/zstd/lib/dictBuilder/
H A Dcover.c116 map->sizeLog = ZSTD_highbit32(size) + 2; in COVER_map_init()
H A Dzdict.c717 U32 offcodeMax = ZSTD_highbit32((U32)(dictBufferSize + 128 KB)); in ZDICT_analyzeEntropy()
/dragonfly/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c1465 *value = (int)ZSTD_highbit32((U32)dctx->maxWindowSize); in ZSTD_DCtx_getParameter()