Home
last modified time | relevance | path

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

/external/zstd/tests/
Ddecodecorpus.c675 U32 offset, offsetCode, repIndex; in generateSequences() local
712 offsetCode = offset + ZSTD_REP_MOVE; in generateSequences()
716 offsetCode = RAND(seed) % 3; in generateSequences()
718 offset = frame->stats.rep[offsetCode]; in generateSequences()
719 repIndex = offsetCode; in generateSequences()
722 offset = offsetCode == 2 ? frame->stats.rep[0] - 1 in generateSequences()
723 : frame->stats.rep[offsetCode + 1]; in generateSequences()
724 repIndex = MIN(2, offsetCode + 1); in generateSequences()
757 if (offsetCode < 3) { in generateSequences()
762 offsetCode, matchLen - MINMATCH); in generateSequences()
/external/zstd/lib/legacy/
Dzstd_v01.c1723 U32 offsetCode, nbBits; in ZSTD_decodeSequence() local
1724 offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); in ZSTD_decodeSequence()
1726 nbBits = offsetCode - 1; in ZSTD_decodeSequence()
1727 if (offsetCode==0) nbBits = 0; /* cmove */ in ZSTD_decodeSequence()
1730 if (offsetCode==0) offset = prevOffset; in ZSTD_decodeSequence()
Dzstd_v04.c2837 U32 offsetCode, nbBits; in ZSTD_decodeSequence() local
2838offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
2840 nbBits = offsetCode - 1; in ZSTD_decodeSequence()
2841 if (offsetCode==0) nbBits = 0; /* cmove */ in ZSTD_decodeSequence()
2842 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
2844 if (offsetCode==0) offset = prevOffset; /* cmove */ in ZSTD_decodeSequence()
2845 if (offsetCode | !litLength) seqState->prevOffset = seq->offset; /* cmove */ in ZSTD_decodeSequence()
Dzstd_v03.c2715 U32 offsetCode, nbBits; in ZSTD_decodeSequence() local
2716offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
2718 nbBits = offsetCode - 1; in ZSTD_decodeSequence()
2719 if (offsetCode==0) nbBits = 0; /* cmove */ in ZSTD_decodeSequence()
2720 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
2722 if (offsetCode==0) offset = prevOffset; /* cmove */ in ZSTD_decodeSequence()
Dzstd_v02.c3074 U32 offsetCode, nbBits; in ZSTD_decodeSequence() local
3075offsetCode = FSE_decodeSymbol(&(seqState->stateOffb), &(seqState->DStream)); /* <= maxOff, by ta… in ZSTD_decodeSequence()
3077 nbBits = offsetCode - 1; in ZSTD_decodeSequence()
3078 if (offsetCode==0) nbBits = 0; /* cmove */ in ZSTD_decodeSequence()
3079 offset = offsetPrefix[offsetCode] + BIT_readBits(&(seqState->DStream), nbBits); in ZSTD_decodeSequence()
3081 if (offsetCode==0) offset = prevOffset; /* cmove */ in ZSTD_decodeSequence()
Dzstd_v05.c3178 …U32 offsetCode = FSEv05_peakSymbol(&(seqState->stateOffb)); /* <= maxOff, by table construction … in ZSTDv05_decodeSequence() local
3179 U32 nbBits = offsetCode - 1; in ZSTDv05_decodeSequence()
3180 if (offsetCode==0) nbBits = 0; /* cmove */ in ZSTDv05_decodeSequence()
3181 offset = offsetPrefix[offsetCode] + BITv05_readBits(&(seqState->DStream), nbBits); in ZSTDv05_decodeSequence()
3183 if (offsetCode==0) offset = prevOffset; /* repcode, cmove */ in ZSTDv05_decodeSequence()
3184 if (offsetCode | !litLength) seqState->prevOffset = seq->offset; /* cmove */ in ZSTDv05_decodeSequence()
/external/zstd/lib/compress/
Dzstd_opt.c290 U32 offsetCode, U32 matchLength) in ZSTD_updateStats() argument
307 { U32 const offCode = ZSTD_highbit32(offsetCode+1); in ZSTD_updateStats()
/external/zstd/doc/
Dzstd_compression_format.md755 Offset_Value = (1 << offsetCode) + readNBits(offsetCode);