Home
last modified time | relevance | path

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

/f-stack/freebsd/contrib/zstd/lib/common/
H A Dbitstream.h207 assert(nbBits < BIT_MASK_SIZE); in BIT_addBits()
210 bitC->bitPos += nbBits; in BIT_addBits()
219 assert((value>>nbBits) == 0); in BIT_addBitsFast()
222 bitC->bitPos += nbBits; in BIT_addBitsFast()
334 assert(nbBits < BIT_MASK_SIZE); in BIT_getMiddleBits()
343 assert(nbBits < BIT_MASK_SIZE); in BIT_getLowerBits()
373 assert(nbBits >= 1); in BIT_lookBitsFast()
379 bitD->bitsConsumed += nbBits; in BIT_skipBits()
389 BIT_skipBits(bitD, nbBits); in BIT_readBits()
398 assert(nbBits >= 1); in BIT_readBitsFast()
[all …]
H A Dentropy_common.c70 int nbBits; in FSE_readNCount_body() local
94 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ in FSE_readNCount_body()
95 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSE_readNCount_body()
98 *tableLogPtr = nbBits; in FSE_readNCount_body()
99 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
100 threshold = 1<<nbBits; in FSE_readNCount_body()
101 nbBits++; in FSE_readNCount_body()
159 bitCount += nbBits-1; in FSE_readNCount_body()
163 bitCount += nbBits; in FSE_readNCount_body()
186 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
[all …]
H A Dfse.h330 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits);
349 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits);
599 unsigned char nbBits; member
620 U32 const nbBits = DInfo.nbBits; in FSE_updateState() local
621 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_updateState()
628 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
630 size_t const lowBits = BIT_readBits(bitD, nbBits); in FSE_decodeSymbol()
641 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
643 size_t const lowBits = BIT_readBitsFast(bitD, nbBits); in FSE_decodeSymbolFast()
H A 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()
H A Dhuf.h141 BYTE nbBits; member
/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dhuf_compress.c197 return table[symbolValue].nbBits; in HUF_getNbBits()
205 BYTE nbBits; member
334 huffNode[n+1].nbBits--; in HUF_setMaxHeight()
453 huffNode[nodeRoot].nbBits = 0; in HUF_buildTree()
455 huffNode[n].nbBits = huffNode[ huffNode[n].parent ].nbBits + 1; in HUF_buildTree()
457 huffNode[n].nbBits = huffNode[ huffNode[n].parent ].nbBits + 1; in HUF_buildTree()
480 nbPerRank[huffNode[n].nbBits]++; in HUF_buildCTableFromTree()
489 … CTable[huffNode[n].byte].nbBits = huffNode[n].nbBits; /* push nbBits per symbol, symbol order */ in HUF_buildCTableFromTree()
527 size_t nbBits = 0; in HUF_estimateCompressedSize() local
530 nbBits += CTable[s].nbBits * count[s]; in HUF_estimateCompressedSize()
[all …]
H A Dfse_compress.c204 int nbBits; in FSE_writeNCount_generic() local
221 nbBits = tableLog+1; in FSE_writeNCount_generic()
261 bitCount += nbBits; in FSE_writeNCount_generic()
265 while (remaining<threshold) { nbBits--; threshold>>=1; } in FSE_writeNCount_generic()
501 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits) in FSE_buildCTable_raw() argument
503 const unsigned tableSize = 1 << nbBits; in FSE_buildCTable_raw()
513 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSE_buildCTable_raw()
516 tableU16[-2] = (U16) nbBits; in FSE_buildCTable_raw()
524 { const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); in FSE_buildCTable_raw()
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v03.c714 unsigned char nbBits; member
729 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
740 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
1189 int nbBits; in FSE_readNCount() local
1206 nbBits++; in FSE_readNCount()
1268 nbBits--; in FSE_readNCount()
1310 cell->nbBits = 0; in FSE_buildDTable_rle()
1336 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
1870 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX4Level2()
1907 HUF_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUF_fillDTableX4()
[all …]
H A Dzstd_v01.c129 unsigned char nbBits; member
488 int nbBits; in FSE_readNCount() local
505 nbBits++; in FSE_readNCount()
567 nbBits--; in FSE_readNCount()
609 cell->nbBits = 0; in FSE_buildDTable_rle()
635 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
785 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
796 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
942 BYTE nbBits; member
949 BYTE nbBits; member
[all …]
H A Dzstd_v02.c712 unsigned char nbBits; member
727 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
738 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
1188 int nbBits; in FSE_readNCount() local
1205 nbBits++; in FSE_readNCount()
1267 nbBits--; in FSE_readNCount()
1309 cell->nbBits = 0; in FSE_buildDTable_rle()
1335 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
1873 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX4Level2()
1910 HUF_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUF_fillDTableX4()
[all …]
H A Dzstd_v04.c887 unsigned char nbBits; member
902 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
913 const U32 nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
1166 int nbBits; in FSE_readNCount() local
1183 nbBits++; in FSE_readNCount()
1245 nbBits--; in FSE_readNCount()
1288 cell->nbBits = 0; in FSE_buildDTable_rle()
1315 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
2021 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX4Level2()
2058 HUF_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUF_fillDTableX4()
[all …]
H A Dzstd_v06.c1130 U32 const nbBits = DInfo.nbBits; in FSEv06_updateState() local
1138 U32 const nbBits = DInfo.nbBits; in FSEv06_decodeSymbol() local
1151 U32 const nbBits = DInfo.nbBits; in FSEv06_decodeSymbolFast() local
1273 int nbBits; in FSEv06_readNCount() local
1290 nbBits++; in FSEv06_readNCount()
1338 nbBits--; in FSEv06_readNCount()
1539 cell->nbBits = 0; in FSEv06_buildDTable_rle()
1565 dinfo[s].nbBits = (BYTE)nbBits; in FSEv06_buildDTable_raw()
2279 DElt.nbBits = (BYTE)(nbBits + consumed); in HUFv06_fillDTableX4Level2()
2314 HUFv06_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUFv06_fillDTableX4()
[all …]
H A Dzstd_v05.c1003 unsigned char nbBits; member
1024 const U32 nbBits = DInfo.nbBits; in FSEv05_decodeSymbol() local
1035 const U32 nbBits = DInfo.nbBits; in FSEv05_decodeSymbolFast() local
1292 int nbBits; in FSEv05_readNCount() local
1309 nbBits++; in FSEv05_readNCount()
1358 nbBits--; in FSEv05_readNCount()
1396 cell->nbBits = 0; in FSEv05_buildDTable_rle()
1422 dinfo[s].nbBits = (BYTE)nbBits; in FSEv05_buildDTable_raw()
2147 DElt.nbBits = (BYTE)(nbBits + consumed); in HUFv05_fillDTableX4Level2()
2182 HUFv05_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUFv05_fillDTableX4()
[all …]
H A Dzstd_v07.c894 U32 const nbBits = DInfo.nbBits; in FSEv07_updateState() local
902 U32 const nbBits = DInfo.nbBits; in FSEv07_decodeSymbol() local
915 U32 const nbBits = DInfo.nbBits; in FSEv07_decodeSymbolFast() local
1217 int nbBits; in FSEv07_readNCount() local
1234 nbBits++; in FSEv07_readNCount()
1282 nbBits--; in FSEv07_readNCount()
1559 cell->nbBits = 0; in FSEv07_buildDTable_rle()
1585 dinfo[s].nbBits = (BYTE)nbBits; in FSEv07_buildDTable_raw()
2086 DElt.nbBits = (BYTE)(nbBits + consumed); in HUFv07_fillDTableX4Level2()
2121 HUFv07_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUFv07_fillDTableX4()
[all …]
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dhuf_decompress.c125 D4 = symbol + (nbBits << 8); in HUF_DEltX1_set4()
127 D4 = (symbol << 8) + nbBits; in HUF_DEltX1_set4()
230 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
239 D.nbBits = nbBits; in HUF_readDTableX1_wksp_bmi2()
286 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX1()
543 DElt.nbBits = (BYTE)(consumed); in HUF_fillDTableX2Level2()
560 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX2Level2()
591 int minWeight = nbBits + scaleLog; in HUF_fillDTableX2()
594 HUF_fillDTableX2Level2(DTable+start, targetLog-nbBits, nbBits, in HUF_fillDTableX2()
601 DElt.nbBits = (BYTE)(nbBits); in HUF_fillDTableX2()
[all …]
H A Dzstd_decompress_block.c355 cell->nbBits = 0; in ZSTD_buildSeqTable_rle()
478 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); in ZSTD_buildFSETable_body()
479 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in ZSTD_buildFSETable_body()
544 U32 const nbBits = nbAdditionalBits[symbol]; in ZSTD_buildSeqTable() local
545 ZSTD_buildSeqTable_rle(DTableSpace, baseline, nbBits); in ZSTD_buildSeqTable()
915 U32 const nbBits = DInfo.nbBits; in ZSTD_updateFseState() local
916 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseState()
923 U32 const nbBits = DInfo.nbBits; in ZSTD_updateFseStateWithDInfo() local
924 size_t const lowBits = BIT_readBits(bitD, nbBits); in ZSTD_updateFseStateWithDInfo()
H A Dzstd_decompress_internal.h70 BYTE nbBits; member
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c2063 U32 const nbBits = DInfo.nbBits; in FSE_updateState() local
2071 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbol() local
2084 U32 const nbBits = DInfo.nbBits; in FSE_decodeSymbolFast() local
2524 int nbBits; in FSE_readNCount() local
2555 nbBits++; in FSE_readNCount()
2923 dinfo[s].nbBits = (BYTE)nbBits; in FSE_buildDTable_raw()
8791 nbBits += CTable[s].nbBits * count[s]; in HUF_estimateCompressedSize()
21849 DElt.nbBits = (BYTE)(nbBits + consumed); in HUF_fillDTableX2Level2()
21890 DElt.nbBits = (BYTE)(nbBits); in HUF_fillDTableX2()
27204 U32 const nbBits = DInfo.nbBits; in ZSTD_updateFseState() local
[all …]