• Home
  • Raw
  • Download

Lines Matching refs:nbBits

513 MEM_STATIC size_t   BITv07_readBits(BITv07_DStream_t* bitD, unsigned nbBits);
522 MEM_STATIC size_t BITv07_readBitsFast(BITv07_DStream_t* bitD, unsigned nbBits);
596 MEM_STATIC size_t BITv07_lookBits(const BITv07_DStream_t* bitD, U32 nbBits) in BITv07_lookBits() argument
599 …return ((bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> 1) >> ((bitMask-nbBits) & bitMas… in BITv07_lookBits()
604 MEM_STATIC size_t BITv07_lookBitsFast(const BITv07_DStream_t* bitD, U32 nbBits) in BITv07_lookBitsFast() argument
607 … return (bitD->bitContainer << (bitD->bitsConsumed & bitMask)) >> (((bitMask+1)-nbBits) & bitMask); in BITv07_lookBitsFast()
610 MEM_STATIC void BITv07_skipBits(BITv07_DStream_t* bitD, U32 nbBits) in BITv07_skipBits() argument
612 bitD->bitsConsumed += nbBits; in BITv07_skipBits()
615 MEM_STATIC size_t BITv07_readBits(BITv07_DStream_t* bitD, U32 nbBits) in BITv07_readBits() argument
617 size_t const value = BITv07_lookBits(bitD, nbBits); in BITv07_readBits()
618 BITv07_skipBits(bitD, nbBits); in BITv07_readBits()
624 MEM_STATIC size_t BITv07_readBitsFast(BITv07_DStream_t* bitD, U32 nbBits) in BITv07_readBitsFast() argument
626 size_t const value = BITv07_lookBitsFast(bitD, nbBits); in BITv07_readBitsFast()
627 BITv07_skipBits(bitD, nbBits); in BITv07_readBitsFast()
831 size_t FSEv07_buildDTable_raw (FSEv07_DTable* dt, unsigned nbBits);
873 unsigned char nbBits; member
894 U32 const nbBits = DInfo.nbBits; in FSEv07_updateState() local
895 size_t const lowBits = BITv07_readBits(bitD, nbBits); in FSEv07_updateState()
902 U32 const nbBits = DInfo.nbBits; in FSEv07_decodeSymbol() local
904 size_t const lowBits = BITv07_readBits(bitD, nbBits); in FSEv07_decodeSymbol()
915 U32 const nbBits = DInfo.nbBits; in FSEv07_decodeSymbolFast() local
917 size_t const lowBits = BITv07_readBitsFast(bitD, nbBits); in FSEv07_decodeSymbolFast()
1217 int nbBits; in FSEv07_readNCount() local
1227 nbBits = (bitStream & 0xF) + FSEv07_MIN_TABLELOG; /* extract tableLog */ in FSEv07_readNCount()
1228 if (nbBits > FSEv07_TABLELOG_ABSOLUTE_MAX) return ERROR(tableLog_tooLarge); in FSEv07_readNCount()
1231 *tableLogPtr = nbBits; in FSEv07_readNCount()
1232 remaining = (1<<nbBits)+1; in FSEv07_readNCount()
1233 threshold = 1<<nbBits; in FSEv07_readNCount()
1234 nbBits++; in FSEv07_readNCount()
1270 bitCount += nbBits-1; in FSEv07_readNCount()
1274 bitCount += nbBits; in FSEv07_readNCount()
1282 nbBits--; in FSEv07_readNCount()
1533 tableDecode[u].nbBits = (BYTE) (tableLog - BITv07_highbit32 ((U32)nextState) ); in FSEv07_buildDTable()
1534 tableDecode[u].newState = (U16) ( (nextState << tableDecode[u].nbBits) - tableSize); in FSEv07_buildDTable()
1559 cell->nbBits = 0; in FSEv07_buildDTable_rle()
1565 size_t FSEv07_buildDTable_raw (FSEv07_DTable* dt, unsigned nbBits) in FSEv07_buildDTable_raw() argument
1571 const unsigned tableSize = 1 << nbBits; in FSEv07_buildDTable_raw()
1577 if (nbBits < 1) return ERROR(GENERIC); /* min size */ in FSEv07_buildDTable_raw()
1580 DTableH->tableLog = (U16)nbBits; in FSEv07_buildDTable_raw()
1585 dinfo[s].nbBits = (BYTE)nbBits; in FSEv07_buildDTable_raw()
1778 typedef struct { BYTE byte; BYTE nbBits; } HUFv07_DEltX2; /* single-symbol decoding */ member
1819 D.byte = (BYTE)n; D.nbBits = (BYTE)(tableLog + 1 - w); in HUFv07_readDTableX2()
1833 BITv07_skipBits(Dstream, dt[val].nbBits); in HUFv07_decodeSymbolX2()
2050 typedef struct { U16 sequence; BYTE nbBits; BYTE length; } HUFv07_DEltX4; /* double-symbols decodi… member
2069 DElt.nbBits = (BYTE)(consumed); in HUFv07_fillDTableX4Level2()
2079 const U32 nbBits = nbBitsBaseline - weight; in HUFv07_fillDTableX4Level2() local
2080 const U32 length = 1 << (sizeLog-nbBits); in HUFv07_fillDTableX4Level2()
2086 DElt.nbBits = (BYTE)(nbBits + consumed); in HUFv07_fillDTableX4Level2()
2112 const U32 nbBits = nbBitsBaseline - weight; in HUFv07_fillDTableX4() local
2114 const U32 length = 1 << (targetLog-nbBits); in HUFv07_fillDTableX4()
2116 if (targetLog-nbBits >= minBits) { /* enough room for a second symbol */ in HUFv07_fillDTableX4()
2118 int minWeight = nbBits + scaleLog; in HUFv07_fillDTableX4()
2121 HUFv07_fillDTableX4Level2(DTable+start, targetLog-nbBits, nbBits, in HUFv07_fillDTableX4()
2122 rankValOrigin[nbBits], minWeight, in HUFv07_fillDTableX4()
2128 DElt.nbBits = (BYTE)(nbBits); in HUFv07_fillDTableX4()
2223 BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeSymbolX4()
2231 if (dt[val].length==1) BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeLastSymbolX4()
2234 BITv07_skipBits(DStream, dt[val].nbBits); in HUFv07_decodeLastSymbolX4()