예제 #1
0
 def divisor(self, a, b):
     return (Lg2.nLog2(b) >> 3) + (Lg2.nLog2(1950) >> 3) - (12 << 11)
예제 #2
0
파일: Common.py 프로젝트: yws/shedskin
 def updateRecentCost(self, symbolFrequency, totalFrequency):
     self.recentCost -= self.recentCost >> Common.CostScale
     self.recentCost += Lg2.nLog2(totalFrequency)
     self.recentCost -= Lg2.nLog2(symbolFrequency)
예제 #3
0
 def divisor(self, a, b):
     return (Lg2.nLog2(b) >> 3) + (Lg2.nLog2(1950) >> 3) - (12 << 11)