Home
last modified time | relevance | path

Searched refs:log2sum (Results 1 – 2 of 2) sorted by relevance

/external/zopfli/src/zopfli/
Dtree.c75 double log2sum; in ZopfliCalculateEntropy() local
79 log2sum = (sum == 0 ? log(n) : log(sum)) * kInvLog2; in ZopfliCalculateEntropy()
84 if (count[i] == 0) bitlengths[i] = log2sum; in ZopfliCalculateEntropy()
85 else bitlengths[i] = log2sum - log(count[i]) * kInvLog2; in ZopfliCalculateEntropy()
/external/brotli/c/enc/
Dbackward_references_hq.c109 float log2sum; in SetCost() local
115 log2sum = (float)FastLog2(sum); in SetCost()
130 cost[i] = log2sum - (float)FastLog2(histogram[i]); in SetCost()