Lines Matching refs:num
289 #// calc num max data.
319 #// calc num max data.
670 def __init__(self, num, shift):
672 if (len(num) == 0):
673 raise Exception(num.length + "/" + shift)
677 while offset < len(num) and num[offset] == 0:
680 self.num = [0 for x in range(len(num)-offset+shift)]
681 for i in range(len(num) - offset):
682 self.num[i] = num[i + offset]
686 return self.num[index]
688 return len(self.num)
690 num = [0 for x in range(self.getLength() + e.getLength() - 1)];
694 num[i + j] ^= QRMath.gexp(QRMath.glog(self.get(i) ) + QRMath.glog(e.get(j) ) )
696 return QRPolynomial(num, 0);
704 num = [0 for x in range(self.getLength())]
707 num[i] = self.get(i);
710 num[i] ^= QRMath.gexp(QRMath.glog(e.get(i) ) + ratio)
713 return QRPolynomial(num, 0).mod(e);
1015 def put(self, num, length):
1017 self.putBit( ( (num >> (length - i - 1) ) & 1) == 1)