Searched refs:log2sum (Results 1 – 2 of 2) sorted by relevance
75 double log2sum; in ZopfliCalculateEntropy() local79 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()
107 float log2sum; in SetCost() local113 log2sum = (float)FastLog2(sum); in SetCost()128 cost[i] = log2sum - (float)FastLog2(histogram[i]); in SetCost()