@Test public void testGcdSmallExhaustive() { for (int a = 10; a >= -10; --a) { for (int b = 10; b >= -10; --b) { BigInteger aVal = BigInteger.valueOf(a); BigInteger bVal = BigInteger.valueOf(b); BigInteger expected = aVal.gcd(bVal); BigInteger actual = gcd(aVal, bVal); assertEquals(String.format("a %d, b %d", a, b) + b, expected, actual); } } }
public static BigInteger gcd(BigInteger value1, BigInteger value2) { return INSTANCE.get().gcdImpl(value1, value2); }
Gmp { public static BigInteger gcd(BigInteger value1, BigInteger value2) { return INSTANCE.get().gcdImpl(value1, value2); } }
Gmp { public static BigInteger gcd(BigInteger value1, BigInteger value2) { return INSTANCE.get().gcdImpl(value1, value2); } private  Gmp(); }
Gmp { public static BigInteger gcd(BigInteger value1, BigInteger value2) { return INSTANCE.get().gcdImpl(value1, value2); } private  Gmp(); static void checkLoaded(); static int kronecker(BigInteger a, BigInteger p); static BigInteger modPowInsecure(BigInteger base, BigInteger exponent,
      BigInteger modulus); static BigInteger modPowSecure(BigInteger base, BigInteger exponent, BigInteger modulus); static BigInteger modInverse(BigInteger val, BigInteger modulus); static BigInteger exactDivide(BigInteger dividend, BigInteger divisor); static BigInteger gcd(BigInteger value1, BigInteger value2); }
Gmp { public static BigInteger gcd(BigInteger value1, BigInteger value2) { return INSTANCE.get().gcdImpl(value1, value2); } private  Gmp(); static void checkLoaded(); static int kronecker(BigInteger a, BigInteger p); static BigInteger modPowInsecure(BigInteger base, BigInteger exponent,
      BigInteger modulus); static BigInteger modPowSecure(BigInteger base, BigInteger exponent, BigInteger modulus); static BigInteger modInverse(BigInteger val, BigInteger modulus); static BigInteger exactDivide(BigInteger dividend, BigInteger divisor); static BigInteger gcd(BigInteger value1, BigInteger value2);  }