Searched refs:FastLog2 (Results 1 – 10 of 10) 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()
129 static BROTLI_INLINE double FastLog2(size_t v) { in FastLog2() function
115 log2sum = (float)FastLog2(sum); in SetCost()122 missing_symbol_cost = (float)FastLog2(missing_symbol_sum) + 2; in SetCost()130 cost[i] = log2sum - (float)FastLog2(histogram[i]); in SetCost()219 cost_cmd[i] = (float)FastLog2(11 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()222 cost_dist[i] = (float)FastLog2(20 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()224 self->min_cost_cmd_ = (float)FastLog2(11); in ZopfliCostModelSetFromLiteralCosts()
83 return count == 0 ? -2.0 : FastLog2(count); in BitCost()
382 double r = (FastLog2(total) + 0.5) * (double)total + 200; in ShouldMergeBlock()384 r -= (double)histo[i] * (depths[i] + FastLog2(histo[i])); in ShouldMergeBlock()
88 insert_cost[i] = FastLog2((uint32_t)histograms[i].total_count_); in FN()
140 // Compute the euclidean distance between math.Log2 and the FastLog2