Lines Matching refs:modulo
1851 def _power_modulo(self, other, modulo, context=None): argument
1858 modulo = _convert_other(modulo, raiseit=True)
1867 modulo_is_nan = modulo._isnan()
1877 modulo)
1882 return modulo._fix_nan(context)
1887 modulo._isinteger()):
1895 if not modulo:
1901 if modulo.adjusted() >= context.prec:
1923 modulo = abs(int(modulo))
1928 base = (base.int % modulo * pow(10, base.exp, modulo)) % modulo
1930 base = pow(base, 10, modulo)
1931 base = pow(base, exponent.int, modulo)
2172 def __pow__(self, other, modulo=None, context=None): argument
2196 if modulo is not None:
2197 return self._power_modulo(other, modulo, context)
4965 def power(self, a, b, modulo=None): argument
5039 r = a.__pow__(b, modulo, context=self)