/linux-master/lib/zstd/common/ |
H A D | fse_decompress.c | 169 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); 170 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); 199 cell->nbBits = 0; 205 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits) argument 211 const unsigned tableSize = 1 << nbBits; 217 if (nbBits < 1) return ERROR(GENERIC); /* min size */ 220 DTableH->tableLog = (U16)nbBits; 225 dinfo[s].nbBits = (BYTE)nbBits;
|
H A D | fse.h | 327 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits); 328 /*< build a fake FSE_CTable, designed for a flat distribution, where each symbol uses nbBits */ 347 size_t FSE_buildDTable_raw (FSE_DTable* dt, unsigned nbBits); 348 /*< build a fake FSE_DTable, designed to read a flat distribution where each symbol uses nbBits */ 412 Note : maximum allowed nbBits is 25, for compatibility with 32-bits decoders 413 BIT_addBits(&bitStream, bitField, nbBits); 470 Note : maximum allowed nbBits is 25, for 32-bits compatibility 471 size_t bitField = BIT_readBits(&DStream, nbBits); 500 /* faster, but works only if nbBits is always >= 1 (otherwise, result will be corrupted) */ 597 unsigned char nbBits; [all...] |
H A D | entropy_common.c | 65 int nbBits; local 89 nbBits = (bitStream & 0xF) + FSE_MIN_TABLELOG; /* extract tableLog */ 90 if (nbBits > FSE_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); 93 *tableLogPtr = nbBits; 94 remaining = (1<<nbBits)+1; 95 threshold = 1<<nbBits; 96 nbBits++; 154 bitCount += nbBits-1; 158 bitCount += nbBits; 181 nbBits [all...] |
H A D | bitstream.h | 57 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); 117 /* faster, but works only if value is "clean", meaning all high bits above nbBits are 0 */ 122 MEM_STATIC size_t BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits); 123 /* faster, but works only if nbBits >= 1 */ 185 size_t value, unsigned nbBits) 188 assert(nbBits < BIT_MASK_SIZE); 189 assert(nbBits + bitC->bitPos < sizeof(bitC->bitContainer) * 8); 190 bitC->bitContainer |= (value & BIT_mask[nbBits]) << bit 184 BIT_addBits(BIT_CStream_t* bitC, size_t value, unsigned nbBits) argument 197 BIT_addBitsFast(BIT_CStream_t* bitC, size_t value, unsigned nbBits) argument 311 BIT_getMiddleBits(size_t bitContainer, U32 const start, U32 const nbBits) argument 328 BIT_getLowerBits(size_t bitContainer, U32 const nbBits) argument 356 BIT_lookBitsFast(const BIT_DStream_t* bitD, U32 nbBits) argument 363 BIT_skipBits(BIT_DStream_t* bitD, U32 nbBits) argument 372 BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits) argument 381 BIT_readBitsFast(BIT_DStream_t* bitD, unsigned nbBits) argument [all...] |
/linux-master/lib/zstd/decompress/ |
H A D | huf_decompress.c | 277 typedef struct { BYTE nbBits; BYTE byte; } HUF_DEltX1; /* single-symbol decoding */ member in struct:__anon28 283 static U64 HUF_DEltX1_set4(BYTE symbol, BYTE nbBits) { argument 286 D4 = (symbol << 8) + nbBits; 288 D4 = symbol + (nbBits << 8); 417 BYTE const nbBits = (BYTE)(tableLog + 1 - w); local 425 D.nbBits = nbBits; 434 D.nbBits = nbBits; 442 U64 const D4 = HUF_DEltX1_set4(wksp->symbols[symbol + s], nbBits); 815 typedef struct { U16 sequence; BYTE nbBits; BYTE length; } HUF_DEltX2; /* double-symbols decoding */ member in struct:__anon30 823 HUF_buildDEltX2U32(U32 symbol, U32 nbBits, U32 baseSeq, int level) argument 842 HUF_buildDEltX2(U32 symbol, U32 nbBits, U32 baseSeq, int level) argument 854 HUF_buildDEltX2U64(U32 symbol, U32 nbBits, U16 baseSeq, int level) argument 872 HUF_fillDTableX2ForWeight( HUF_DEltX2* DTableRank, sortedSymbol_t const* begin, sortedSymbol_t const* end, U32 nbBits, U32 tableLog, U16 baseSeq, int const level) argument 975 U32 const nbBits = nbBitsBaseline - w; local 1001 U32 const nbBits = nbBitsBaseline - w; local [all...] |
H A D | zstd_decompress_internal.h | 70 BYTE nbBits; member in struct:__anon229
|
H A D | zstd_decompress_block.c | 325 /* nextState, nbAddBits, nbBits, baseVal */ 363 /* nextState, nbAddBits, nbBits, baseVal */ 386 /* nextState, nbAddBits, nbBits, baseVal */ 431 cell->nbBits = 0; 554 tableDecode[u].nbBits = (BYTE) (tableLog - BIT_highbit32(nextState) ); 555 tableDecode[u].nextState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); 620 U8 const nbBits = nbAdditionalBits[symbol]; local 621 ZSTD_buildSeqTable_rle(DTableSpace, baseline, nbBits); 1150 ZSTD_updateFseStateWithDInfo(ZSTD_fseState* DStatePtr, BIT_DStream_t* bitD, U16 nextState, U32 nbBits) argument 1152 size_t const lowBits = BIT_readBits(bitD, nbBits); [all...] |
/linux-master/lib/zstd/compress/ |
H A D | huf_compress.c | 148 static void HUF_setNbBits(HUF_CElt* elt, size_t nbBits) argument 150 assert(nbBits <= HUF_TABLELOG_ABSOLUTEMAX); 151 *elt = nbBits; 156 size_t const nbBits = HUF_getNbBits(*elt); local 157 if (nbBits > 0) { 158 assert((value >> nbBits) == 0); 159 *elt |= value << (sizeof(HUF_CElt) * 8 - nbBits); 244 /* fill nbBits */ 282 BYTE nbBits; member in struct:nodeElt_s 289 * It sets all nodes with nbBits > maxNbBit 710 size_t nbBits = 0; local 806 size_t const nbBits = HUF_getNbBits(elt); local 847 size_t const nbBits = bitC->bitPos[0] & 0xFF; local 885 size_t const nbBits = bitC->bitPos[0] & 0xFF; local [all...] |
H A D | fse_compress.c | 240 int nbBits; local 257 nbBits = tableLog+1; 297 bitCount += nbBits; 301 while (remaining<threshold) { nbBits--; threshold>>=1; } 537 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits) argument 539 const unsigned tableSize = 1 << nbBits; 549 if (nbBits < 1) return ERROR(GENERIC); /* min size */ 552 tableU16[-2] = (U16) nbBits; 560 { const U32 deltaNbBits = (nbBits << 16) - (1 << nbBits); [all...] |