Home
last modified time | relevance | path

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

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_sequences.c317 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
318 if (extraBits) { in ZSTD_encodeSequences_body()
319 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, extraBits); in ZSTD_encodeSequences_body()
322 BIT_addBits(&blockStream, sequences[nbSeq-1].offset >> extraBits, in ZSTD_encodeSequences_body()
323 ofBits - extraBits); in ZSTD_encodeSequences_body()
354 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
355 if (extraBits) { in ZSTD_encodeSequences_body()
356 BIT_addBits(&blockStream, sequences[n].offset, extraBits); in ZSTD_encodeSequences_body()
359 BIT_addBits(&blockStream, sequences[n].offset >> extraBits, in ZSTD_encodeSequences_body()
360 ofBits - extraBits); /* 31 */ in ZSTD_encodeSequences_body()
/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress_block.c963 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed); in ZSTD_decodeSequence() local
964 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits); in ZSTD_decodeSequence()
966 if (extraBits) offset += BIT_readBitsFast(&seqState->DStream, extraBits); in ZSTD_decodeSequence()
967 assert(extraBits <= LONG_OFFSETS_MAX_EXTRA_BITS_32); /* to avoid another reload */ in ZSTD_decodeSequence()