Home
last modified time | relevance | path

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

/external/brotli/c/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.h51 static BROTLI_INLINE double FastLog2(size_t v) { in FastLog2() function
Dbackward_references_hq.c113 log2sum = (float)FastLog2(sum); in SetCost()
120 missing_symbol_cost = (float)FastLog2(missing_symbol_sum) + 2; in SetCost()
128 cost[i] = log2sum - (float)FastLog2(histogram[i]); in SetCost()
217 cost_cmd[i] = (float)FastLog2(11 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()
220 cost_dist[i] = (float)FastLog2(20 + (uint32_t)i); in ZopfliCostModelSetFromLiteralCosts()
222 self->min_cost_cmd_ = (float)FastLog2(11); in ZopfliCostModelSetFromLiteralCosts()
Dblock_splitter.c83 return count == 0 ? -2.0 : FastLog2(count); in BitCost()
Dcompress_fragment.c382 double r = (FastLog2(total) + 0.5) * (double)total + 200; in ShouldMergeBlock()
384 r -= (double)histo[i] * (depths[i] + FastLog2(histo[i])); in ShouldMergeBlock()
Dblock_splitter_inc.h88 insert_cost[i] = FastLog2((uint32_t)histograms[i].total_count_); in FN()
/external/toolchain-utils/go/patch/go-1.10.2/
Dgo6.patch140 // Compute the euclidean distance between math.Log2 and the FastLog2