Home
last modified time | relevance | path

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

/external/zstd/lib/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.c713 HUF_decodeSymbolX2(void* op, BIT_DStream_t* DStream, const HUF_DEltX2* dt, const U32 dtLog) in HUF_decodeSymbolX2() argument
715 size_t const val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeSymbolX2()
717 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX2()
722 HUF_decodeLastSymbolX2(void* op, BIT_DStream_t* DStream, const HUF_DEltX2* dt, const U32 dtLog) in HUF_decodeLastSymbolX2() argument
724 size_t const val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeLastSymbolX2()
726 if (dt[val].length==1) BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()
728 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUF_decodeLastSymbolX2()
729 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()
730 if (DStream->bitsConsumed > (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX2()
732 DStream->bitsConsumed = (sizeof(DStream->bitContainer)*8); in HUF_decodeLastSymbolX2()
/external/zstd/lib/legacy/
Dzstd_v02.c503 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream) in BIT_endOfDStream() argument
505 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()
2018 static U32 HUF_decodeSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32 dtL… in HUF_decodeSymbolX4() argument
2020 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeSymbolX4()
2022 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX4()
2026 static U32 HUF_decodeLastSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32… in HUF_decodeLastSymbolX4() argument
2028 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeLastSymbolX4()
2030 if (dt[val].length==1) BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
2033 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX4()
2035 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
[all …]
Dzstd_v03.c505 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream) in BIT_endOfDStream() argument
507 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()
2015 static U32 HUF_decodeSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32 dtL… in HUF_decodeSymbolX4() argument
2017 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeSymbolX4()
2019 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX4()
2023 static U32 HUF_decodeLastSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32… in HUF_decodeLastSymbolX4() argument
2025 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeLastSymbolX4()
2027 if (dt[val].length==1) BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
2030 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX4()
2032 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
[all …]
Dzstd_v04.c770 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream) in BIT_endOfDStream() argument
772 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()
2165 static U32 HUF_decodeSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32 dtL… in HUF_decodeSymbolX4() argument
2167 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeSymbolX4()
2169 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX4()
2173 static U32 HUF_decodeLastSymbolX4(void* op, BIT_DStream_t* DStream, const HUF_DEltX4* dt, const U32… in HUF_decodeLastSymbolX4() argument
2175 const size_t val = BIT_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUF_decodeLastSymbolX4()
2177 if (dt[val].length==1) BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
2180 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) in HUF_decodeLastSymbolX4()
2182 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX4()
[all …]
Dzstd_v06.c994 MEM_STATIC unsigned BITv06_endOfDStream(const BITv06_DStream_t* DStream) in BITv06_endOfDStream() argument
996 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BITv06_endOfDStream()
2408 static U32 HUFv06_decodeSymbolX4(void* op, BITv06_DStream_t* DStream, const HUFv06_DEltX4* dt, cons… in HUFv06_decodeSymbolX4() argument
2410 const size_t val = BITv06_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv06_decodeSymbolX4()
2412 BITv06_skipBits(DStream, dt[val].nbBits); in HUFv06_decodeSymbolX4()
2416 static U32 HUFv06_decodeLastSymbolX4(void* op, BITv06_DStream_t* DStream, const HUFv06_DEltX4* dt, … in HUFv06_decodeLastSymbolX4() argument
2418 const size_t val = BITv06_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv06_decodeLastSymbolX4()
2420 if (dt[val].length==1) BITv06_skipBits(DStream, dt[val].nbBits); in HUFv06_decodeLastSymbolX4()
2422 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUFv06_decodeLastSymbolX4()
2423 BITv06_skipBits(DStream, dt[val].nbBits); in HUFv06_decodeLastSymbolX4()
[all …]
Dzstd_v05.c893 MEM_STATIC unsigned BITv05_endOfDStream(const BITv05_DStream_t* DStream) in BITv05_endOfDStream() argument
895 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BITv05_endOfDStream()
2279 static U32 HUFv05_decodeSymbolX4(void* op, BITv05_DStream_t* DStream, const HUFv05_DEltX4* dt, cons… in HUFv05_decodeSymbolX4() argument
2281 const size_t val = BITv05_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv05_decodeSymbolX4()
2283 BITv05_skipBits(DStream, dt[val].nbBits); in HUFv05_decodeSymbolX4()
2287 static U32 HUFv05_decodeLastSymbolX4(void* op, BITv05_DStream_t* DStream, const HUFv05_DEltX4* dt, … in HUFv05_decodeLastSymbolX4() argument
2289 const size_t val = BITv05_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv05_decodeLastSymbolX4()
2291 if (dt[val].length==1) BITv05_skipBits(DStream, dt[val].nbBits); in HUFv05_decodeLastSymbolX4()
2293 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUFv05_decodeLastSymbolX4()
2294 BITv05_skipBits(DStream, dt[val].nbBits); in HUFv05_decodeLastSymbolX4()
[all …]
Dzstd_v07.c662 MEM_STATIC unsigned BITv07_endOfDStream(const BITv07_DStream_t* DStream) in BITv07_endOfDStream() argument
664 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BITv07_endOfDStream()
2219 static U32 HUFv07_decodeSymbolX4(void* op, BITv07_DStream_t* DStream, const HUFv07_DEltX4* dt, cons… in HUFv07_decodeSymbolX4() argument
2221 const size_t val = BITv07_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv07_decodeSymbolX4()
2223 BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeSymbolX4()
2227 static U32 HUFv07_decodeLastSymbolX4(void* op, BITv07_DStream_t* DStream, const HUFv07_DEltX4* dt, … in HUFv07_decodeLastSymbolX4() argument
2229 const size_t val = BITv07_lookBitsFast(DStream, dtLog); /* note : dtLog >= 1 */ in HUFv07_decodeLastSymbolX4()
2231 if (dt[val].length==1) BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeLastSymbolX4()
2233 if (DStream->bitsConsumed < (sizeof(DStream->bitContainer)*8)) { in HUFv07_decodeLastSymbolX4()
2234 BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeLastSymbolX4()
[all …]
Dzstd_v01.c1684 FSE_DStream_t DStream; member
1704 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence()
1724 offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); in ZSTD_decodeSequence()
1725 if (ZSTD_32bits()) FSE_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
1728 …et = ((size_t)1 << (nbBits & ((sizeof(offset)*8)-1))) + FSE_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
1729 if (ZSTD_32bits()) FSE_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
1734 matchLength = FSE_decodeSymbol(&(seqState->stateML), &(seqState->DStream)); in ZSTD_decodeSequence()
1888 errorCode = FSE_initDStream(&(seqState.DStream), ip, iend-ip); in ZSTD_decompressSequences()
1890 FSE_initDState(&(seqState.stateLL), &(seqState.DStream), DTableLL); in ZSTD_decompressSequences()
1891 FSE_initDState(&(seqState.stateOffb), &(seqState.DStream), DTableOffb); in ZSTD_decompressSequences()
[all …]
/external/zstd/lib/common/
Dbitstream.h454 MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* DStream) in BIT_endOfDStream() argument
456 …return ((DStream->ptr == DStream->start) && (DStream->bitsConsumed == sizeof(DStream->bitContainer… in BIT_endOfDStream()
/external/zstd/
DCHANGELOG431 API : ZDICT_getDictID(), ZSTD_sizeof_{CCtx, DCtx, CStream, DStream}(), ZSTD_setDStreamParameter()