Searched refs:gcd (Results 1 – 10 of 10) sorted by relevance
122 int gcd = gcd(numerator, denominator); in Rational() local124 mNumerator = numerator / gcd; in Rational()125 mDenominator = denominator / gcd; in Rational()306 public static int gcd(int numerator, int denominator) { in gcd() method in Rational537 if (gcd(mNumerator, mDenominator) > 1) { in readObject()
471 int gcd = schedule.buckets[0].period_ms; in createSchedule() local473 gcd = Rational.gcd(schedule.buckets[b].period_ms, gcd); in createSchedule()476 if (gcd < PERIOD_MIN_GCD_MS) { in createSchedule()478 gcd = PERIOD_MIN_GCD_MS; in createSchedule()481 schedule.base_period_ms = gcd; in createSchedule()
50 assertEquals(1, Rational.gcd(1, 2)); in testGcd()51 assertEquals(1, Rational.gcd(2, 3)); in testGcd()52 assertEquals(78, Rational.gcd(5*78, 7*78)); in testGcd()53 assertEquals(1, Rational.gcd(-1, 2)); in testGcd()54 assertEquals(1, Rational.gcd(-2, 3)); in testGcd()
118 static int gcd(int a, int b) {159 int common = gcd(num, den);197 return (long)a * b / gcd(a, b);
261 static int gcd(int n, int m) in gcd() function266 return gcd(m, n % m); in gcd()371 int phases = mSampleRate / gcd(mSampleRate, inSampleRate); in setSampleRate()
237 static int gcd(int a, int b) {249 *accum += gcd(a, b);
META-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...
42660 method public java.math.BigInteger gcd(java.math.BigInteger);
55642 method public java.math.BigInteger gcd(java.math.BigInteger);
59550 method public java.math.BigInteger gcd(java.math.BigInteger);