ZSTD_highbit32 190 lib/zstd/compress.c U32 const srcLog = MAX(ZSTD_HASHLOG_MIN, ZSTD_highbit32((U32)(rSize)-1) + 1); ZSTD_highbit32 576 lib/zstd/compress.c llCodeTable[u] = (llv > 63) ? (BYTE)ZSTD_highbit32(llv) + LL_deltaCode : LL_Code[llv]; ZSTD_highbit32 577 lib/zstd/compress.c ofCodeTable[u] = (BYTE)ZSTD_highbit32(sequences[u].offset); ZSTD_highbit32 578 lib/zstd/compress.c mlCodeTable[u] = (mlv > 127) ? (BYTE)ZSTD_highbit32(mlv) + ML_deltaCode : ML_Code[mlv]; ZSTD_highbit32 1689 lib/zstd/compress.c if ((4 * (int)(matchLength - bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_highbit32((U32)offsetPtr[0] + 1))) ZSTD_highbit32 1959 lib/zstd/compress.c int const gain1 = (int)(matchLength * 3 - ZSTD_highbit32((U32)offset + 1) + 1); ZSTD_highbit32 1966 lib/zstd/compress.c int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ ZSTD_highbit32 1967 lib/zstd/compress.c int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 4); ZSTD_highbit32 1980 lib/zstd/compress.c int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 1); ZSTD_highbit32 1987 lib/zstd/compress.c int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ ZSTD_highbit32 1988 lib/zstd/compress.c int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 7); ZSTD_highbit32 2140 lib/zstd/compress.c int const gain1 = (int)(matchLength * 3 - ZSTD_highbit32((U32)offset + 1) + 1); ZSTD_highbit32 2150 lib/zstd/compress.c int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ ZSTD_highbit32 2151 lib/zstd/compress.c int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 4); ZSTD_highbit32 2175 lib/zstd/compress.c int gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 1); ZSTD_highbit32 2185 lib/zstd/compress.c int const gain2 = (int)(ml2 * 4 - ZSTD_highbit32((U32)offset2 + 1)); /* raw approx */ ZSTD_highbit32 2186 lib/zstd/compress.c int const gain1 = (int)(matchLength * 4 - ZSTD_highbit32((U32)offset + 1) + 7); ZSTD_highbit32 2700 lib/zstd/compress.c offcodeMax = ZSTD_highbit32(maxOffset); /* Calculate minimum offset code required to represent maxOffset */ ZSTD_highbit32 1255 lib/zstd/decompress.c if (ZSTD_highbit32(windowSize) > STREAM_ACCUMULATOR_MIN) { ZSTD_highbit32 31 lib/zstd/zstd_opt.h ssPtr->log2matchLengthSum = ZSTD_highbit32(ssPtr->matchLengthSum + 1); ZSTD_highbit32 32 lib/zstd/zstd_opt.h ssPtr->log2litLengthSum = ZSTD_highbit32(ssPtr->litLengthSum + 1); ZSTD_highbit32 33 lib/zstd/zstd_opt.h ssPtr->log2litSum = ZSTD_highbit32(ssPtr->litSum + 1); ZSTD_highbit32 34 lib/zstd/zstd_opt.h ssPtr->log2offCodeSum = ZSTD_highbit32(ssPtr->offCodeSum + 1); ZSTD_highbit32 106 lib/zstd/zstd_opt.h return ZSTD_highbit32((U32)litLength + 1) + (litLength * 6); ZSTD_highbit32 109 lib/zstd/zstd_opt.h return ssPtr->log2litLengthSum - ZSTD_highbit32(ssPtr->litLengthFreq[0] + 1); ZSTD_highbit32 117 lib/zstd/zstd_opt.h price -= ZSTD_highbit32(ssPtr->litFreq[literals2[u]] + 1); ZSTD_highbit32 123 lib/zstd/zstd_opt.h price -= ZSTD_highbit32(ssPtr->litFreq[literals[u]] + 1); ZSTD_highbit32 135 lib/zstd/zstd_opt.h const BYTE llCode = (litLength > 63) ? (BYTE)ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; ZSTD_highbit32 136 lib/zstd/zstd_opt.h price += LL_bits[llCode] + ssPtr->log2litLengthSum - ZSTD_highbit32(ssPtr->litLengthFreq[llCode] + 1); ZSTD_highbit32 146 lib/zstd/zstd_opt.h BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); ZSTD_highbit32 149 lib/zstd/zstd_opt.h return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + 1) + 16 + offCode; ZSTD_highbit32 151 lib/zstd/zstd_opt.h price = offCode + seqStorePtr->log2offCodeSum - ZSTD_highbit32(seqStorePtr->offCodeFreq[offCode] + 1); ZSTD_highbit32 158 lib/zstd/zstd_opt.h const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Code[matchLength]; ZSTD_highbit32 159 lib/zstd/zstd_opt.h price += ML_bits[mlCode] + seqStorePtr->log2matchLengthSum - ZSTD_highbit32(seqStorePtr->matchLengthFreq[mlCode] + 1); ZSTD_highbit32 177 lib/zstd/zstd_opt.h const BYTE llCode = (litLength > 63) ? (BYTE)ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; ZSTD_highbit32 184 lib/zstd/zstd_opt.h BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); ZSTD_highbit32 192 lib/zstd/zstd_opt.h const BYTE mlCode = (matchLength > 127) ? (BYTE)ZSTD_highbit32(matchLength) + ML_deltaCode : ML_Code[matchLength];