Searched refs:FastLog2 (Results 1 – 9 of 9) sorted by relevance
33 return (double)size_a * FastLog2(size_a) + in ClusterCostDiff()34 (double)size_b * FastLog2(size_b) - in ClusterCostDiff()35 (double)size_c * FastLog2(size_c); in ClusterCostDiff()
33 retval -= (double)p * FastLog2(p); in ShannonEntropy()37 retval -= (double)p * FastLog2(p); in ShannonEntropy()39 if (sum) retval += (double)sum * FastLog2(sum); in ShannonEntropy()
109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()161 double lit_cost = FastLog2(in_window) - FastLog2(histo); in BrotliEstimateBitCostsForLiterals()
75 const double log2total = FastLog2(histogram->total_count_); in FN()80 double log2p = log2total - FastLog2(histogram->data_[i]); in FN()
127 static BROTLI_INLINE double FastLog2(size_t v) { in FastLog2() function
101 log2sum = (float)FastLog2(sum); in SetCost()109 cost[i] = log2sum - (float)FastLog2(histogram[i]); in SetCost()189 cost_cmd[i] = (float)FastLog2(11 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()192 cost_dist[i] = (float)FastLog2(20 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()194 self->min_cost_cmd_ = (float)FastLog2(11); in ZopfliCostModelSetFromLiteralCosts()
86 return count == 0 ? -2.0 : FastLog2(count); in BitCost()
383 double r = (FastLog2(total) + 0.5) * (double)total + 200; in ShouldMergeBlock()385 r -= (double)histo[i] * (depths[i] + FastLog2(histo[i])); in ShouldMergeBlock()
89 insert_cost[i] = FastLog2((uint32_t)histograms[i].total_count_); in FN()