HomeSort by relevance Sort by last modified time
    Searched refs:gcd (Results 1 - 25 of 60) sorted by null

1 2 3

  /external/guava/guava-tests/test/com/google/common/math/
IntMathTest.java 339 assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
346 assertEquals(a, IntMath.gcd(a, 0));
347 assertEquals(a, IntMath.gcd(0, a));
349 assertEquals(0, IntMath.gcd(0, 0));
355 IntMath.gcd(a, 3);
359 IntMath.gcd(3, a);
368 IntMath.gcd(a, 0);
372 IntMath.gcd(0, a);
LongMathTest.java 380 assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(LongMath.gcd(a, b)));
387 assertEquals(a, LongMath.gcd(a, 0));
388 assertEquals(a, LongMath.gcd(0, a));
390 assertEquals(0, LongMath.gcd(0, 0));
396 LongMath.gcd(a, 3);
400 LongMath.gcd(3, a);
409 LongMath.gcd(a, 0);
413 LongMath.gcd(0, a);
  /external/apache-harmony/math/src/test/java/org/apache/harmony/tests/java/math/
BigIntegerModPowTest.java 28 * Methods: modPow, modInverse, and gcd
240 * gcd: the second number is zero
250 BigInteger result = aNumber.gcd(bNumber);
260 * gcd: the first number is zero
270 BigInteger result = aNumber.gcd(bNumber);
280 * gcd: the first number is ZERO
288 BigInteger result = aNumber.gcd(bNumber);
298 * gcd: both numbers are zeros
304 BigInteger result = aNumber.gcd(bNumber);
313 * gcd: the first number is longe
    [all...]
BigIntegerHashCodeTest.java 45 aNumber1.gcd(aNumber2).pow(7);
  /external/bouncycastle/src/main/java/org/bouncycastle/crypto/generators/
RSAKeyPairGenerator.java 62 if (e.gcd(p.subtract(ONE)).equals(ONE))
95 if (e.gcd(q.subtract(ONE)).equals(ONE))
  /external/harfbuzz/src/
harfbuzz-gdef.c 797 HB_ClassDefinition* gcd; local
805 gcd = &gdef->GlyphClassDef;
809 gcd->ClassFormat = 2;
811 gcd->cd.cd2.ClassRangeCount = 0;
812 gcd->cd.cd2.ClassRangeRecord = NULL;
832 if ( ( error = Make_ClassRange( gcd, start,
850 if ( ( error = Make_ClassRange( gcd, start,
873 if ( ( error = Make_ClassRange( gcd, start,
895 gcd->cd.cd2.ClassRangeCount + 1, HB_UShort* ) )
898 count = gcd->cd.cd2.ClassRangeCount
    [all...]
  /prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/
hwint.h 235 gcd (int a, int b) function
257 return (abs (a) * abs (b) / gcd (a, b));
  /prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/lib/gcc/arm-eabi/4.6.x-google/plugin/include/
hwint.h 235 gcd (int a, int b) function
257 return (abs (a) * abs (b) / gcd (a, b));
  /prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/lib/gcc/arm-linux-androideabi/4.6.x-google/plugin/include/
hwint.h 235 gcd (int a, int b) function
257 return (abs (a) * abs (b) / gcd (a, b));
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
IntMath.java 109 public static int gcd(int a, int b) { method in class:IntMath
112 * gcd(0, Integer.MIN_VALUE)? BigInteger.gcd would return positive 2^31, but positive 2^31
  /bionic/libc/unistd/
getopt_long.c 93 static int gcd(int, int);
114 gcd(int a, int b) function
145 ncycle = gcd(nnonopts, nopts);
  /external/libvpx/vpx_scale/generic/
bicubic_scaler.c 239 int gcd(int a, int b) function
327 // reduce in/out width and height ratios using the gcd
328 gcd_w = gcd(out_width, in_width);
329 gcd_h = gcd(out_height, in_height);
330 gcd_h_uv = gcd(out_height, in_height / 2);
  /external/dropbear/libtomcrypt/src/headers/
tomcrypt_math.h 248 /** gcd
254 int (*gcd)(void *a, void *b, void *c); member in struct:__anon6124
481 #define mp_gcd(a, b, c) ltc_mp.gcd(a, b, c)
  /external/dropbear/libtomcrypt/src/math/
gmp_desc.c 288 /* gcd */
289 static int gcd(void *a, void *b, void *c) function
427 &gcd,
ltm_desc.c 293 /* gcd */
294 static int gcd(void *a, void *b, void *c) function
433 &gcd,
tfm_desc.c 302 /* gcd */
303 static int gcd(void *a, void *b, void *c) function
721 &gcd,
  /external/guava/guava/src/com/google/common/math/
LongMath.java 400 public static long gcd(long a, long b) { method
403 * gcd(0, Long.MIN_VALUE)? BigInteger.gcd would return positive 2^63, but positive 2^63 isn't
412 * Uses the binary GCD algorithm; see http://en.wikipedia.org/wiki/Binary_GCD_algorithm.
589 // Dividing by the GCD suffices to avoid overflow in all the remaining cases.
591 int d = IntMath.gcd(n, i);
609 * binomial(BIGGEST_SIMPLE_BINOMIALS[k], k) doesn't need to use the slower GCD-based impl,
IntMath.java 333 public static int gcd(int a, int b) { method
336 * gcd(0, Integer.MIN_VALUE)? BigInteger.gcd would return positive 2^31, but positive 2^31
  /external/zlib/examples/
gzappend.c 100 local unsigned gcd(unsigned a, unsigned b) function
152 cycles = gcd(len, rot); /* number of cycles */
  /packages/apps/Calculator/
arity-2.1.2.jar 
  /external/icu4c/i18n/
nfrs.cpp 64 // binary gcd algorithm from Knuth, "The Art of Computer Programming,"
95 int64_t gcd = x1 << p2; local
97 // x * y == gcd(x, y) * lcm(x, y)
98 return x / gcd * y;
  /libcore/luni/src/main/java/java/math/
BigInteger.java 851 public BigInteger gcd(BigInteger value) { method in class:BigInteger
852 return new BigInteger(BigInt.gcd(getBigInt(), value.getBigInt()));
    [all...]
BigInt.java 309 static BigInt gcd(BigInt a, BigInt b) { method in class:BigInt
BigDecimal.java 1230 BigInteger gcd; \/\/ greatest common divisor between 'p' and 'q' local
    [all...]
  /external/apache-harmony/math/src/test/java/tests/api/java/math/
BigIntegerTest.java 411 + mod, !one.equals(a.gcd(mod)));
432 + mod, !one.equals(a.gcd(mod)));
    [all...]

Completed in 583 milliseconds

1 2 3