Home
last modified time | relevance | path

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

/lib/zstd/compress/
Dzstd_compress_sequences.c316 U32 const ofBits = ofCodeTable[nbSeq-1]; in ZSTD_encodeSequences_body() local
317 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body()
323 ofBits - extraBits); in ZSTD_encodeSequences_body()
335 U32 const ofBits = ofCode; in ZSTD_encodeSequences_body() local
347 if (MEM_32bits() || (ofBits+mlBits+llBits >= 64-7-(LLFSELog+MLFSELog+OffFSELog))) in ZSTD_encodeSequences_body()
352 if (MEM_32bits() || (ofBits+mlBits+llBits > 56)) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
354 unsigned const extraBits = ofBits - MIN(ofBits, STREAM_ACCUMULATOR_MIN-1); in ZSTD_encodeSequences_body()
360 ofBits - extraBits); /* 31 */ in ZSTD_encodeSequences_body()
362 BIT_addBits(&blockStream, sequences[n].offset, ofBits); /* 31 */ in ZSTD_encodeSequences_body()
/lib/zstd/decompress/
Dzstd_decompress_block.c953 BYTE const ofBits = ofDInfo.nbAdditionalBits; in ZSTD_decodeSequence() local
954 BYTE const totalBits = llBits+mlBits+ofBits; in ZSTD_decodeSequence()
958 if (ofBits > 1) { in ZSTD_decodeSequence()
961 assert(ofBits <= MaxOff); in ZSTD_decodeSequence()
962 if (MEM_32bits() && longOffsets && (ofBits >= STREAM_ACCUMULATOR_MIN_32)) { in ZSTD_decodeSequence()
963 U32 const extraBits = ofBits - MIN(ofBits, 32 - seqState->DStream.bitsConsumed); in ZSTD_decodeSequence()
964 … offset = ofBase + (BIT_readBitsFast(&seqState->DStream, ofBits - extraBits) << extraBits); in ZSTD_decodeSequence()
969 …offset = ofBase + BIT_readBitsFast(&seqState->DStream, ofBits/*>0*/); /* <= (ZSTD_WINDOWLOG_MAX… in ZSTD_decodeSequence()
977 if (LIKELY((ofBits == 0))) { in ZSTD_decodeSequence()