Home
last modified time | relevance | path

Searched refs:DStream (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress_block.c670 BIT_DStream_t DStream; member
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()
965 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
966 if (extraBits) offset += BIT_readBitsFast(&seqState->DStream, extraBits); in ZSTD_decodeSequence()
969 …offset = ofBase + BIT_readBitsFast(&seqState->DStream, ofBits/*>0*/); /* <= (ZSTD_WINDOWLOG_MAX… in ZSTD_decodeSequence()
970 if (MEM_32bits()) BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
986 offset = ofBase + ll0 + BIT_readBitsFast(&seqState->DStream, 1); in ZSTD_decodeSequence()
998 seq.matchLength += BIT_readBitsFast(&seqState->DStream, mlBits/*>0*/); in ZSTD_decodeSequence()
1001 BIT_reloadDStream(&seqState->DStream); in ZSTD_decodeSequence()
[all …]
Dhuf_decompress.c714 HUF_decodeSymbolX2(void* op, BIT_DStream_t* DStream, const HUF_DEltX2* dt, const U32 dtLog) in HUF_decodeSymbolX2() argument
716 size_t const val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeSymbolX2()
718 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX2()
723 HUF_decodeLastSymbolX2(void* op, BIT_DStream_t* DStream, const HUF_DEltX2* dt, const U32 dtLog) in HUF_decodeLastSymbolX2() argument
725 size_t const val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeLastSymbolX2()
727 if (dt[val].length==1) BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()
729 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUF_decodeLastSymbolX2()
730 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()
731 if (DStream->bitsConsumed > (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX2()
733 DStream->bitsConsumed = (sizeof(DStream->bitContainer)*8); in HUF_decodeLastSymbolX2()
/linux-6.1.9/lib/zstd/common/
Dbitstream.h431 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream) in BIT_endOfDStream() argument
433 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()