Lines Matching refs:nbBits

277 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()
481 BIT_skipBits(Dstream, dt[val].nbBits); in HUF_decodeSymbolX1()
815 typedef struct { U16 sequence; BYTE nbBits; BYTE length; } HUF_DEltX2; /* double-symbols decoding … member
823 static U32 HUF_buildDEltX2U32(U32 symbol, U32 nbBits, U32 baseSeq, int level) in HUF_buildDEltX2U32() argument
827 DEBUG_STATIC_ASSERT(offsetof(HUF_DEltX2, nbBits) == 2); in HUF_buildDEltX2U32()
832 return seq + (nbBits << 16) + ((U32)level << 24); in HUF_buildDEltX2U32()
835 return (seq << 16) + (nbBits << 8) + (U32)level; in HUF_buildDEltX2U32()
842 static HUF_DEltX2 HUF_buildDEltX2(U32 symbol, U32 nbBits, U32 baseSeq, int level) in HUF_buildDEltX2() argument
845 U32 const val = HUF_buildDEltX2U32(symbol, nbBits, baseSeq, level); in HUF_buildDEltX2()
854 static U64 HUF_buildDEltX2U64(U32 symbol, U32 nbBits, U16 baseSeq, int level) in HUF_buildDEltX2U64() argument
856 U32 DElt = HUF_buildDEltX2U32(symbol, nbBits, baseSeq, level); in HUF_buildDEltX2U64()
875 U32 nbBits, U32 tableLog, in HUF_fillDTableX2ForWeight() argument
878 U32 const length = 1U << ((tableLog - nbBits) & 0x1F /* quiet static-analyzer */); in HUF_fillDTableX2ForWeight()
884 HUF_DEltX2 const DElt = HUF_buildDEltX2(ptr->symbol, nbBits, baseSeq, level); in HUF_fillDTableX2ForWeight()
890 HUF_DEltX2 const DElt = HUF_buildDEltX2(ptr->symbol, nbBits, baseSeq, level); in HUF_fillDTableX2ForWeight()
898 U64 const DEltX2 = HUF_buildDEltX2U64(ptr->symbol, nbBits, baseSeq, level); in HUF_fillDTableX2ForWeight()
906 U64 const DEltX2 = HUF_buildDEltX2U64(ptr->symbol, nbBits, baseSeq, level); in HUF_fillDTableX2ForWeight()
916 U64 const DEltX2 = HUF_buildDEltX2U64(ptr->symbol, nbBits, baseSeq, level); in HUF_fillDTableX2ForWeight()
975 U32 const nbBits = nbBitsBaseline - w; in HUF_fillDTableX2Level2() local
976 U32 const totalBits = nbBits + consumedBits; in HUF_fillDTableX2Level2()
1001 U32 const nbBits = nbBitsBaseline - w; in HUF_fillDTableX2() local
1003 if (targetLog-nbBits >= minBits) { in HUF_fillDTableX2()
1006 U32 const length = 1U << ((targetLog - nbBits) & 0x1F /* quiet static-analyzer */); in HUF_fillDTableX2()
1007 int minWeight = nbBits + scaleLog; in HUF_fillDTableX2()
1015 DTable + start, targetLog, nbBits, in HUF_fillDTableX2()
1016 rankValOrigin[nbBits], minWeight, wEnd, in HUF_fillDTableX2()
1026 nbBits, targetLog, in HUF_fillDTableX2()
1139 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeSymbolX2()
1149 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()
1152 BIT_skipBits(DStream, dt[val].nbBits); in HUF_decodeLastSymbolX2()