Lines Matching refs:modulo
1962 def _power_modulo(self, other, modulo, context=None): argument
1968 modulo = _convert_other(modulo)
1969 if modulo is NotImplemented:
1970 return modulo
1979 modulo_is_nan = modulo._isnan()
1989 modulo)
1994 return modulo._fix_nan(context)
1999 modulo._isinteger()):
2007 if not modulo:
2013 if modulo.adjusted() >= context.prec:
2035 modulo = abs(int(modulo))
2040 base = (base.int % modulo * pow(10, base.exp, modulo)) % modulo
2042 base = pow(base, 10, modulo)
2043 base = pow(base, exponent.int, modulo)
2284 def __pow__(self, other, modulo=None, context=None): argument
2308 if modulo is not None:
2309 return self._power_modulo(other, modulo, context)
5137 def power(self, a, b, modulo=None): argument
5211 r = a.__pow__(b, modulo, context=self)