Home
last modified time | relevance | path

Searched refs:modPow (Results 1 – 4 of 4) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerModPowTest.java45 aNumber.modPow(exp, modulus); in testModPowException()
51 BigInteger.ZERO.modPow(new BigInteger("-1"), new BigInteger("10")); in testModPowException()
72 BigInteger result = aNumber.modPow(exp, modulus); in testModPowPosExp()
95 BigInteger result = aNumber.modPow(exp, modulus); in testModPowNegExp()
113 base[i].modPow(exp, mod[j])); in testModPowZeroExp()
122 base[i].modPow(exp, mod[j])); in testModPowZeroExp()
/libcore/benchmarks/src/benchmarks/
DBigIntegerBenchmark.java173 BigInteger newRes = base.modPow(exponent, product); in repeatModPow()
180 if (!lastRes.mod(odd1).equals(base.modPow(exponent, odd1))) { in repeatModPow()
183 + "base.modPow(exponent, odd1)=" + base.modPow(exponent, odd1) + " base=" in repeatModPow()
186 if (!lastRes.mod(odd2).equals(base.modPow(exponent, odd2))) { in repeatModPow()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java1040 BigInteger z = b.modPow(m, this); in passesMillerRabin()
1044 z = z.modPow(TWO, this); in passesMillerRabin()
2671 @NonNull public BigInteger modPow(@NonNull BigInteger exponent, @NonNull BigInteger m) { in modPow() method
/libcore/api/
Dcurrent.txt4799 …method @NonNull public java.math.BigInteger modPow(@NonNull java.math.BigInteger, @NonNull java.ma…