Lines Matching refs:modulo
1966 def _power_modulo(self, other, modulo, context=None): argument
1972 modulo = _convert_other(modulo)
1973 if modulo is NotImplemented:
1974 return modulo
1983 modulo_is_nan = modulo._isnan()
1993 modulo)
1998 return modulo._fix_nan(context)
2003 modulo._isinteger()):
2011 if not modulo:
2017 if modulo.adjusted() >= context.prec:
2039 modulo = abs(int(modulo))
2044 base = (base.int % modulo * pow(10, base.exp, modulo)) % modulo
2046 base = pow(base, 10, modulo)
2047 base = pow(base, exponent.int, modulo)
2288 def __pow__(self, other, modulo=None, context=None): argument
2312 if modulo is not None:
2313 return self._power_modulo(other, modulo, context)
5141 def power(self, a, b, modulo=None): argument
5215 r = a.__pow__(b, modulo, context=self)