Searched refs:gcd (Results 1 - 25 of 32) sorted by relevance

12

/macosx-10.10.1/CPANInternal-159.1/Perl4-CoreLibs-0.003/lib/
H A Dbigrat.pl64 local($gcd) = &'bgcd($num,$dom);
65 $gcd =~ s/^-/+/;
66 if ($gcd ne '+1') {
67 $num = &'bdiv($num,$gcd);
68 $dom = &'bdiv($dom,$gcd);
/macosx-10.10.1/bash-94.1.2/bash-3.2/
H A Dbracecomp.c66 int start, end, gcd; local
84 gcd = strlen (array[start]);
94 gcd = temp;
121 tlen = gcd - gcd_zero;
132 subterm = really_munge_braces (array, start, end + 1, gcd);
/macosx-10.10.1/emacs-93/emacs/lisp/calc/
H A Dcalc-frac.el85 ;;; the plain gcd algorithm.)
90 (let ((gcd (math-gcd num den)))
91 (if (eq gcd 1)
95 (if (equal gcd den)
96 (math-quotient num gcd)
97 (list 'frac (math-quotient num gcd) (math-quotient den gcd))))))
H A Dcalc-poly.el56 (cont (math-poly-gcd-list p)))
68 (math-neg (math-poly-gcd cont c2))
69 (math-poly-gcd cont c2))))))
141 ;;; Return gcd of two polynomials
149 (math-poly-gcd pn pd)))
367 (defun math-poly-gcd (u v)
372 (calcFunc-gcd u (calcFunc-pcont v))))
376 (calcFunc-gcd v (calcFunc-pcont u))))
378 (let ((base (math-poly-gcd-base u v)))
383 (math-poly-gcd
[all...]
/macosx-10.10.1/Libc-1044.1.2/stdlib/FreeBSD/
H A Dgetopt_long.c111 static int gcd(int, int);
142 gcd(int a, int b) function
173 ncycle = gcd(nnonopts, nopts);
/macosx-10.10.1/file-46/file/src/
H A Dgetopt_long.c93 static int gcd(int, int);
115 gcd(a, b) function
153 ncycle = gcd(nnonopts, nopts);
/macosx-10.10.1/CPANInternal-159.1/Crypt-OpenSSL-Bignum-0.04/
H A Dtest.pl121 ok( 6 == _new_bn( 18 )->gcd( _new_bn( 42 ), $ctx )->get_word() );
H A DBignum.xs321 gcd(a, b, ctx)
/macosx-10.10.1/ruby-106/ruby/test/ruby/
H A Dtest_complexrational.rb208 gcd = num.gcd(den)
209 @num = num.div(gcd)
210 @den = den.div(gcd)
/macosx-10.10.1/text_cmds-88/sort/
H A Dsystem.h745 gcd (size_t u, size_t v) function
765 return u * (v / gcd (u, v));
/macosx-10.10.1/zlib-55/zlib/examples/
H A Dgzappend.c100 local unsigned gcd(unsigned a, unsigned b) function
152 cycles = gcd(len, rot); /* number of cycles */
/macosx-10.10.1/BerkeleyDB-21/db/test/
H A Dsdbutils.tcl159 set last [expr $n * $last / [gcd $n $last]]
H A Djoin.tcl389 set last [expr $n * $last / [gcd $n $last]]
445 proc gcd { a b } { procedure
/macosx-10.10.1/ICU-531.30/icuSources/i18n/
H A Dnfrs.cpp64 // 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;
/macosx-10.10.1/ruby-106/ruby/
H A Drational.c474 VALUE gcd; local
486 gcd = f_gcd(num, den);
487 num = f_idiv(num, gcd);
488 den = f_idiv(den, gcd);
625 * rat.numerator.gcd(rat.denominator) #=> 1
1687 * int.gcd(int2) -> integer
1689 * Returns the greatest common divisor (always positive). 0.gcd(x)
1690 * and x.gcd(0) return abs(x).
1692 * 2.gcd(2) #=> 2
1693 * 3.gcd(
[all...]
/macosx-10.10.1/vim-55/runtime/syntax/
H A Dplaintex.vim96 \ '\\\%(arc\%(cos\|sin\|tan\)\|arg\|\%(cos\|sin\|tan\)h\=\|coth\=\|csc\|de[gt]\|dim\|exp\|gcd\|hom\|inf\|ker\|lo\=g\|lim\%(inf\|sup\)\=\|ln\|max\|min\|Pr\|sec\|sup\)\>'
H A Dmonk.vim80 syn keyword monkFunc quotient remainder modulo gcd lcm numerator denominator
H A Dmupad.vim99 syn keyword mupadFunction funcenv gamma gcd gcdex genident genpoly
H A Dmaxima.vim93 syn keyword maximaFunc gamma %gamma gammalim gauss gcd gcdex gcfactor gdet genfact
H A Dscheme.vim86 syn keyword schemeFunc quotient remainder modulo gcd lcm numerator denominator
/macosx-10.10.1/Heimdal-398.1.2/lib/hcrypto/libtommath/mtest/
H A Dmpi.c2018 ... by computing the product, and dividing out the gcd.
2023 mp_int gcd, prod; local
2029 if((res = mp_init(&gcd)) != MP_OKAY)
2036 if((res = mp_gcd(a, b, &gcd)) != MP_OKAY)
2039 res = mp_div(&prod, &gcd, c, NULL);
2044 mp_clear(&gcd);
/macosx-10.10.1/emacs-93/emacs/lisp/emacs-lisp/
H A Dcl.el607 gcd lcm isqrt floor* ceiling* truncate* round*
H A Dcl-extra.el326 (defun gcd (&rest args) function
341 (setq a (* (/ a (gcd a b)) b))))
/macosx-10.10.1/ruby-106/ruby/ext/openssl/
H A Dossl_bn.c357 BIGNUM_2c(gcd)
776 rb_define_method(cBN, "gcd", ossl_bn_gcd, 1);
/macosx-10.10.1/JavaScriptCore-7600.1.17/tests/exceptionFuzz/
H A Dearley-boyer.js405 var gcd = 0;
407 gcd = sc_euclid_gcd(gcd, arguments[i]);
408 return gcd;

Completed in 309 milliseconds

12