def divisor(self, a, b): return (Lg2.nLog2(b) >> 3) + (Lg2.nLog2(1950) >> 3) - (12 << 11)
def updateRecentCost(self, symbolFrequency, totalFrequency): self.recentCost -= self.recentCost >> Common.CostScale self.recentCost += Lg2.nLog2(totalFrequency) self.recentCost -= Lg2.nLog2(symbolFrequency)