Home
last modified time | relevance | path

Searched refs:FastLog2 (Results 1 – 9 of 9) sorted by relevance

/external/brotli/enc/
Dcluster.c33 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()
Dbit_cost.h33 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()
Dliteral_cost.c109 lit_cost = FastLog2(in_window_utf8[utf8_pos]) - FastLog2(histo); in EstimateBitCostsForLiteralsUTF8()
161 double lit_cost = FastLog2(in_window) - FastLog2(histo); in BrotliEstimateBitCostsForLiterals()
Dbit_cost_inc.h75 const double log2total = FastLog2(histogram->total_count_); in FN()
80 double log2p = log2total - FastLog2(histogram->data_[i]); in FN()
Dfast_log.h127 static BROTLI_INLINE double FastLog2(size_t v) { in FastLog2() function
Dbackward_references_hq.c101 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()
Dblock_splitter.c86 return count == 0 ? -2.0 : FastLog2(count); in BitCost()
Dcompress_fragment.c383 double r = (FastLog2(total) + 0.5) * (double)total + 200; in ShouldMergeBlock()
385 r -= (double)histo[i] * (depths[i] + FastLog2(histo[i])); in ShouldMergeBlock()
Dblock_splitter_inc.h89 insert_cost[i] = FastLog2((uint32_t)histograms[i].total_count_); in FN()