Lines Matching refs:table
93 static U32 sum_u32(const unsigned table[], size_t nbElts) in sum_u32() argument
98 total += table[n]; in sum_u32()
106 ZSTD_downscaleStats(unsigned* table, U32 lastEltIndex, U32 shift, base_directive_e base1) in ZSTD_downscaleStats() argument
113 unsigned const base = base1 ? 1 : (table[s]>0); in ZSTD_downscaleStats()
114 unsigned const newStat = base + (table[s] >> shift); in ZSTD_downscaleStats()
116 table[s] = newStat; in ZSTD_downscaleStats()
124 static U32 ZSTD_scaleStats(unsigned* table, U32 lastEltIndex, U32 logTarget) in ZSTD_scaleStats() argument
126 U32 const prevsum = sum_u32(table, lastEltIndex+1); in ZSTD_scaleStats()
131 return ZSTD_downscaleStats(table, lastEltIndex, ZSTD_highbit32(factor), base_1guaranteed); in ZSTD_scaleStats()
1057 listStats(const U32* table, int lastEltID)
1062 (void)table;
1064 RAWLOG(2, "%4i,", table[enb]);