Home
last modified time | relevance | path

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

/linux-6.6.21/lib/zstd/compress/
Dzstd_compress_sequences.c319 U32 const ofBits = ofCodeTable[nbSeq-1]; in ZSTD_encodeSequences_body() local
320 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body()
326 ofBits - extraBits); in ZSTD_encodeSequences_body()
338 U32 const ofBits = ofCode; in ZSTD_encodeSequences_body() local
350 if (MEM_32bits() || (ofBits+mlBits+llBits >= 64-7-(LLFSELog+MLFSELog+OffFSELog))) in ZSTD_encodeSequences_body()
355 if (MEM_32bits() || (ofBits+mlBits+llBits > 56)) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
357 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body()
363 ofBits - extraBits); /* 31 */ in ZSTD_encodeSequences_body()
365 BIT_addBits(&blockStream, sequences[n].offBase, ofBits); /* 31 */ in ZSTD_encodeSequences_body()
/linux-6.6.21/lib/zstd/decompress/
Dzstd_decompress_block.c1180 BYTE const ofBits = ofDInfo->nbAdditionalBits; local
1181 BYTE const totalBits = llBits+mlBits+ofBits;
1198 if (LIKELY(ofBits > 1)) {
1200 if (ofBits > 1) {
1204 assert(ofBits <= MaxOff);
1205 if (MEM_32bits() && longOffsets && (ofBits >= STREAM_ACCUMULATOR_MIN_32)) {
1206 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed);
1207 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits);
1212 …offset = ofBase + BIT_readBitsFast(&seqState->DStream, ofBits/*>0*/); /* <= (ZSTD_WINDOWLOG_MAX…
1220 if (LIKELY((ofBits == 0))) {