Home
last modified time | relevance | path

Searched refs:nbBits (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.6/lib/zstd/common/
Dbitstream.h57 MEM_STATIC void BIT_addBits(BIT_CStream_t* bitC, size_t value, unsigned nbBits);
97 MEM_STATIC size_t BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits);
116 MEM_STATIC void BIT_addBitsFast(BIT_CStream_t* bitC, size_t value, unsigned nbBits);
122 MEM_STATIC size_t BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits);
185 size_t value, unsigned nbBits) in BIT_addBits() argument
188 assert(nbBits < BIT_MASK_SIZE); in BIT_addBits()
189 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); in BIT_addBits()
190 bitC->bitContainer |= (value & BIT_mask[nbBits]) << bitC->bitPos; in BIT_addBits()
191 bitC->bitPos += nbBits; in BIT_addBits()
198 size_t value, unsigned nbBits) in BIT_addBitsFast() argument
[all …]
Dentropy_common.c65 int nbBits; in FSE_readNCount_body() local
89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
90 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount_body()
93 *tableLogPtr = nbBits; in FSE_readNCount_body()
94 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
95 threshold = 1<<nbBits; in FSE_readNCount_body()
96 nbBits++; in FSE_readNCount_body()
154 bitCount += nbBits-1; in FSE_readNCount_body()
158 bitCount += nbBits; in FSE_readNCount_body()
181 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
[all …]
Dfse.h327 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits);
347 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits);
597 unsigned char nbBits; member
618 U32 const nbBits = DInfo.nbBits; in FSE_updateState() local
619 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState()
626 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
628 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol()
639 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
641 size_t const lowBits = BIT_readBitsFast(bitD, nbBits); in FSE_decodeSymbolFast()
Dfse_decompress.c169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in FSE_buildDTable_internal()
170 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSE_buildDTable_internal()
199 cell->nbBits = 0; in FSE_buildDTable_rle()
205 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits) in FSE_buildDTable_raw() argument
211 const unsigned tableSize = 1 << nbBits; in FSE_buildDTable_raw()
217 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildDTable_raw()
220 DTableH->tableLog = (U16)nbBits; in FSE_buildDTable_raw()
225 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
/Linux-v6.6/lib/zstd/compress/
Dhuf_compress.c148 static void HUF_setNbBits(HUF_CElt* elt, size_t nbBits) in HUF_setNbBits() argument
150 assert(nbBits <= HUF_TABLELOG_ABSOLUTEMAX); in HUF_setNbBits()
151 *elt = nbBits; in HUF_setNbBits()
156 size_t const nbBits = HUF_getNbBits(*elt); in HUF_setValue() local
157 if (nbBits > 0) { in HUF_setValue()
158 assert((value >> nbBits) == 0); in HUF_setValue()
159 *elt |= value << (sizeof(HUF_CElt) * 8 - nbBits); in HUF_setValue()
282 BYTE nbBits; member
307 const U32 largestBits = huffNode[lastNonNull].nbBits; in HUF_setMaxHeight()
320 while (huffNode[n].nbBits > maxNbBits) { in HUF_setMaxHeight()
[all …]
Dfse_compress.c240 int nbBits; in FSE_writeNCount_generic() local
257 nbBits = tableLog+1; in FSE_writeNCount_generic()
297 bitCount += nbBits; in FSE_writeNCount_generic()
301 while (remaining<threshold) { nbBits--; threshold>>=1; } in FSE_writeNCount_generic()
537 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits) in FSE_buildCTable_raw() argument
539 const unsigned tableSize = 1 << nbBits; in FSE_buildCTable_raw()
549 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildCTable_raw()
552 tableU16[-2] = (U16) nbBits; in FSE_buildCTable_raw()
560 { const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
/Linux-v6.6/lib/zstd/decompress/
Dhuf_decompress.c277 typedef struct { BYTE nbBits; BYTE byte; } HUF_DEltX1; /* single-symbol decoding */ member
283 static U64 HUF_DEltX1_set4(BYTE symbol, BYTE nbBits) { in HUF_DEltX1_set4() argument
286 D4 = (symbol << 8) + nbBits; in HUF_DEltX1_set4()
288 D4 = symbol + (nbBits << 8); in HUF_DEltX1_set4()
417 BYTE const nbBits = (BYTE)(tableLog + 1 - w); in HUF_readDTableX1_wksp_bmi2() local
425 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
434 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
442 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
449 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
457 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); in HUF_readDTableX1_wksp_bmi2()
[all …]
Dzstd_decompress_block.c431 cell->nbBits = 0; in ZSTD_buildSeqTable_rle()
554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()
555 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
620 U8 const nbBits = nbAdditionalBits[symbol]; in ZSTD_buildSeqTable() local
621 ZSTD_buildSeqTable_rle(DTableSpace, baseline, nbBits); in ZSTD_buildSeqTable()
1150 …D_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBits) in ZSTD_updateFseStateWithDInfo() argument
1152 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseStateWithDInfo()
1186 U32 const llnbBits = llDInfo->nbBits;
1187 U32 const mlnbBits = mlDInfo->nbBits;
1188 U32 const ofnbBits = ofDInfo->nbBits;
Dzstd_decompress_internal.h70 BYTE nbBits; member