Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_sequences.c297 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
298 if (extraBits) { in ZSTD_encodeSequences_body()
299 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, extraBits); in ZSTD_encodeSequences_body()
302 BIT_addBits(&blockStream, sequences[nbSeq-1].offset >> extraBits, in ZSTD_encodeSequences_body()
303 ofBits - extraBits); in ZSTD_encodeSequences_body()
334 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
335 if (extraBits) { in ZSTD_encodeSequences_body()
336 BIT_addBits(&blockStream, sequences[n].offset, extraBits); in ZSTD_encodeSequences_body()
339 BIT_addBits(&blockStream, sequences[n].offset >> extraBits, in ZSTD_encodeSequences_body()
340 ofBits - extraBits); /* 31 */ in ZSTD_encodeSequences_body()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_sequences.c320 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
321 if (extraBits) { in ZSTD_encodeSequences_body()
322 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, extraBits); in ZSTD_encodeSequences_body()
325 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase >> extraBits, in ZSTD_encodeSequences_body()
326 ofBits - extraBits); in ZSTD_encodeSequences_body()
357 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body() local
358 if (extraBits) { in ZSTD_encodeSequences_body()
359 BIT_addBits(&blockStream, sequences[n].offBase, extraBits); in ZSTD_encodeSequences_body()
362 BIT_addBits(&blockStream, sequences[n].offBase >> extraBits, in ZSTD_encodeSequences_body()
363 ofBits - extraBits); /* 31 */ in ZSTD_encodeSequences_body()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_block.c854 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed); in ZSTD_decodeSequence() local
855 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits); in ZSTD_decodeSequence()
857 if (extraBits) offset += BIT_readBitsFast(&seqState->DStream, extraBits); in ZSTD_decodeSequence()
858 assert(extraBits <= LONG_OFFSETS_MAX_EXTRA_BITS_32); /* to avoid another reload */ in ZSTD_decodeSequence()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_block.c1206 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed); local
1207 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits);
1209 if (extraBits) offset += BIT_readBitsFast(&seqState->DStream, extraBits);
1210 … assert(extraBits <= LONG_OFFSETS_MAX_EXTRA_BITS_32); /* to avoid another reload */