Esempio n. 1
0
 def __mul__(self, other):
     if isinstance(other, cbits):
         return NotImplemented
     else:
         try:
             res = cbits(n=min(self.max_length, self.n+util.int_len(other)))
             inst.mulci(res, self, other)
             return res
         except TypeError:
             return NotImplemented
Esempio n. 2
0
 def __mul__(self, other):
     if isinstance(other, cbits):
         return NotImplemented
     else:
         try:
             res = cbits(n=min(self.max_length, self.n +
                               util.int_len(other)))
             inst.mulci(res, self, other)
             return res
         except TypeError:
             return NotImplemented