Home
last modified time | relevance | path

Searched refs:gcd (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/math/
DBigIntegerTest.java202 assertEquals(result, arg1.gcd(arg2)); in try_gcd_variants()
203 assertEquals(result, arg2.gcd(arg1)); in try_gcd_variants()
204 assertEquals(result, arg1.negate().gcd(arg2)); in try_gcd_variants()
205 assertEquals(result, arg2.gcd(arg1.negate())); in try_gcd_variants()
206 assertEquals(result, arg1.gcd(arg2.negate())); in try_gcd_variants()
207 assertEquals(result, arg2.negate().gcd(arg1)); in try_gcd_variants()
208 assertEquals(result, arg1.negate().gcd(arg2.negate())); in try_gcd_variants()
209 assertEquals(result, arg2.negate().gcd(arg1.negate())); in try_gcd_variants()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigIntegerModPowTest.java250 BigInteger result = aNumber.gcd(bNumber); in testGcdSecondZero()
270 BigInteger result = aNumber.gcd(bNumber); in testGcdFirstZero()
288 BigInteger result = aNumber.gcd(bNumber); in testGcdFirstZERO()
304 BigInteger result = aNumber.gcd(bNumber); in testGcdBothZeros()
323 BigInteger result = aNumber.gcd(bNumber); in testGcdFirstLonger()
343 BigInteger result = aNumber.gcd(bNumber); in testGcdSecondLonger()
DBigIntegerHashCodeTest.java45 aNumber1.gcd(aNumber2).pow(7); in testSameObject()
DBigIntegerTest.java382 + mod, !one.equals(a.gcd(mod))); in test_modInverseLjava_math_BigInteger()
403 + mod, !one.equals(a.gcd(mod))); in test_modInverseLjava_math_BigInteger()
/libcore/benchmarks/src/benchmarks/regression/
DBigIntegerBenchmark.java37 x.gcd(y); in timeRandomGcd()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java2496 @NonNull public BigInteger gcd(@NonNull BigInteger val) { in gcd() method