Searched refs:gcd (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/math/ |
D | BigIntegerTest.java | 202 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/ |
D | BigIntegerModPowTest.java | 250 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()
|
D | BigIntegerHashCodeTest.java | 45 aNumber1.gcd(aNumber2).pow(7); in testSameObject()
|
D | BigIntegerTest.java | 382 + 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/ |
D | BigIntegerBenchmark.java | 37 x.gcd(y); in timeRandomGcd()
|
/libcore/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 2496 @NonNull public BigInteger gcd(@NonNull BigInteger val) { in gcd() method
|