Home
last modified time | relevance | path

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

/external/zstd/lib/compress/
Dzstd_compress_sequences.c289 BIT_CStream_t blockStream; in ZSTD_encodeSequences_body() local
295 ERR_isError(BIT_initCStream(&blockStream, dst, dstCapacity)), in ZSTD_encodeSequences_body()
298 (int)(blockStream.endPtr - blockStream.startPtr), in ZSTD_encodeSequences_body()
305 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
306 if (MEM_32bits()) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
307 BIT_addBits(&blockStream, sequences[nbSeq-1].matchLength, ML_bits[mlCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body()
308 if (MEM_32bits()) BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
313 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, extraBits); in ZSTD_encodeSequences_body()
314 BIT_flushBits(&blockStream); in ZSTD_encodeSequences_body()
316 BIT_addBits(&blockStream, sequences[nbSeq-1].offset >> extraBits, in ZSTD_encodeSequences_body()
[all …]
/external/zstd/tests/
Ddecodecorpus.c937 { BIT_CStream_t blockStream; in writeSequences() local
943 ERR_isError(BIT_initCStream(&blockStream, op, oend-op)), in writeSequences()
950 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in writeSequences()
951 if (MEM_32bits()) BIT_flushBits(&blockStream); in writeSequences()
952 BIT_addBits(&blockStream, sequences[nbSeq-1].matchLength, ML_bits[mlCodeTable[nbSeq-1]]); in writeSequences()
953 if (MEM_32bits()) BIT_flushBits(&blockStream); in writeSequences()
954 BIT_addBits(&blockStream, sequences[nbSeq-1].offset, ofCodeTable[nbSeq-1]); in writeSequences()
955 BIT_flushBits(&blockStream); in writeSequences()
966 FSE_encodeSymbol(&blockStream, &stateOffsetBits, ofCode); /* 15 */ /* 15 */ in writeSequences()
967 FSE_encodeSymbol(&blockStream, &stateMatchLength, mlCode); /* 24 */ /* 24 */ in writeSequences()
[all …]