Home
last modified time | relevance | path

Searched refs:seqState (Results 1 – 8 of 8) sorted by relevance

/external/zstd/lib/decompress/
Dzstd_decompress_block.c942 ZSTD_decodeSequence(seqState_t* seqState, const ZSTD_longOffset_e longOffsets, const ZSTD_prefetch_… in ZSTD_decodeSequence() argument
945 ZSTD_seqSymbol const llDInfo = seqState->stateLL.table[seqState->stateLL.state]; in ZSTD_decodeSequence()
946 ZSTD_seqSymbol const mlDInfo = seqState->stateML.table[seqState->stateML.state]; in ZSTD_decodeSequence()
947 ZSTD_seqSymbol const ofDInfo = seqState->stateOffb.table[seqState->stateOffb.state]; 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()
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()
[all …]
/external/zstd/lib/legacy/
Dzstd_v01.c1694 static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTD_decodeSequence() argument
1700 const BYTE* dumps = seqState->dumps; in ZSTD_decodeSequence()
1701 const BYTE* const de = seqState->dumpsEnd; in ZSTD_decodeSequence()
1704 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence()
1705 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence()
1706 seqState->prevOffset = seq->offset; 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 …offset = ((size_t)1 << (nbBits & ((sizeof(offset)*8)-1))) + FSE_readBits(&(seqState->DStream), nbB… in ZSTD_decodeSequence()
1729 if (ZSTD_32bits()) FSE_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
[all …]
Dzstd_v06.c3289 static void ZSTDv06_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTDv06_decodeSequence() argument
3292 U32 const llCode = FSEv06_peekSymbol(&(seqState->stateLL)); in ZSTDv06_decodeSequence()
3293 U32 const mlCode = FSEv06_peekSymbol(&(seqState->stateML)); in ZSTDv06_decodeSequence()
3294 …U32 const ofCode = FSEv06_peekSymbol(&(seqState->stateOffb)); /* <= maxOff, by table constructio… in ZSTDv06_decodeSequence()
3323 … offset = OF_base[ofCode] + BITv06_readBits(&(seqState->DStream), ofBits); /* <= 26 bits */ in ZSTDv06_decodeSequence()
3324 if (MEM_32bits()) BITv06_reloadDStream(&(seqState->DStream)); in ZSTDv06_decodeSequence()
3331 size_t temp = seqState->prevOffset[offset]; in ZSTDv06_decodeSequence()
3333 seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTDv06_decodeSequence()
3335 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTDv06_decodeSequence()
3336 seqState->prevOffset[0] = offset = temp; in ZSTDv06_decodeSequence()
[all …]
Dzstd_v03.c2684 static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTD_decodeSequence() argument
2690 const BYTE* dumps = seqState->dumps; in ZSTD_decodeSequence()
2691 const BYTE* const de = seqState->dumpsEnd; in ZSTD_decodeSequence()
2694 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence()
2695 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence()
2696 seqState->prevOffset = seq->offset; in ZSTD_decodeSequence()
2716 …offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
2717 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
2720 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
2721 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
[all …]
Dzstd_v07.c3518 static seq_t ZSTDv07_decodeSequence(seqState_t* seqState) in ZSTDv07_decodeSequence() argument
3522 U32 const llCode = FSEv07_peekSymbol(&(seqState->stateLL)); in ZSTDv07_decodeSequence()
3523 U32 const mlCode = FSEv07_peekSymbol(&(seqState->stateML)); in ZSTDv07_decodeSequence()
3524 …U32 const ofCode = FSEv07_peekSymbol(&(seqState->stateOffb)); /* <= maxOff, by table constructio… in ZSTDv07_decodeSequence()
3553 …offset = OF_base[ofCode] + BITv07_readBits(&(seqState->DStream), ofBits); /* <= (ZSTDv07_WINDOW… in ZSTDv07_decodeSequence()
3554 if (MEM_32bits()) BITv07_reloadDStream(&(seqState->DStream)); in ZSTDv07_decodeSequence()
3560 size_t const temp = seqState->prevOffset[offset]; in ZSTDv07_decodeSequence()
3561 if (offset != 1) seqState->prevOffset[2] = seqState->prevOffset[1]; in ZSTDv07_decodeSequence()
3562 seqState->prevOffset[1] = seqState->prevOffset[0]; in ZSTDv07_decodeSequence()
3563 seqState->prevOffset[0] = offset = temp; in ZSTDv07_decodeSequence()
[all …]
Dzstd_v04.c2810 static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTD_decodeSequence() argument
2816 const BYTE* dumps = seqState->dumps; in ZSTD_decodeSequence()
2817 const BYTE* const de = seqState->dumpsEnd; in ZSTD_decodeSequence()
2820 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence()
2821 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence()
2838 …offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
2839 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
2842 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
2843 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
2845 if (offsetCode | !litLength) seqState->prevOffset = seq->offset; /* cmove */ in ZSTD_decodeSequence()
[all …]
Dzstd_v02.c3043 static void ZSTD_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTD_decodeSequence() argument
3049 const BYTE* dumps = seqState->dumps; in ZSTD_decodeSequence()
3050 const BYTE* const de = seqState->dumpsEnd; in ZSTD_decodeSequence()
3053 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence()
3054 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence()
3055 seqState->prevOffset = seq->offset; in ZSTD_decodeSequence()
3075 …offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
3076 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
3079 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
3080 if (MEM_32bits()) BIT_reloadDStream(&(seqState->DStream)); in ZSTD_decodeSequence()
[all …]
Dzstd_v05.c3145 static void ZSTDv05_decodeSequence(seq_t* seq, seqState_t* seqState) in ZSTDv05_decodeSequence() argument
3151 const BYTE* dumps = seqState->dumps; in ZSTDv05_decodeSequence()
3152 const BYTE* const de = seqState->dumpsEnd; in ZSTDv05_decodeSequence()
3155 litLength = FSEv05_peakSymbol(&(seqState->stateLL)); in ZSTDv05_decodeSequence()
3156 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTDv05_decodeSequence()
3178 …U32 offsetCode = FSEv05_peakSymbol(&(seqState->stateOffb)); /* <= maxOff, by table construction … in ZSTDv05_decodeSequence()
3181 offset = offsetPrefix[offsetCode] + BITv05_readBits(&(seqState->DStream), nbBits); in ZSTDv05_decodeSequence()
3182 if (MEM_32bits()) BITv05_reloadDStream(&(seqState->DStream)); in ZSTDv05_decodeSequence()
3184 if (offsetCode | !litLength) seqState->prevOffset = seq->offset; /* cmove */ in ZSTDv05_decodeSequence()
3185 FSEv05_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* update */ in ZSTDv05_decodeSequence()
[all …]