Searched refs:extraBits (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/lib/zstd/compress/ |
D | zstd_compress_sequences.c | 320 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()
|
/linux-6.12.1/lib/zstd/decompress/ |
D | zstd_decompress_block.c | 1206 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 */
|