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

/opensolaris-onvv-gate/usr/src/lib/libmp/common/
H A Dmapfile_1-vers43 gcd;
H A Dlibmp.h59 extern void gcd(MINT *, MINT *, MINT *);
H A Dold_mp.c29 void gcd(MINT *a, MINT *b, MINT *c) { mp_gcd(a, b, c); } function
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/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);
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Drecurse.t16 sub gcd { subroutine
17 return gcd($_[0] - $_[1], $_[1]) if ($_[0] > $_[1]);
18 return gcd($_[0], $_[1] - $_[0]) if ($_[0] < $_[1]);
52 is(gcd(1147, 1271), 31, "gcd(1147, 1271) == 31");
54 is(gcd(1908, 2016), 36, "gcd(1908, 2016) == 36");
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/t/lib/Math/BigInt/
H A DBareCalc.pm28 fac pow gcd log_int sqrt root
/opensolaris-onvv-gate/usr/src/lib/libmp/
H A DMakefile.com31 OBJECTS= gcd.o madd.o mdiv.o mout.o msqrt.o mult.o pow.o util.o
/opensolaris-onvv-gate/usr/src/lib/libparted/common/libparted/cs/
H A Dnatmath.c41 PedSector gcd; /* "converges" to the gcd */ member in struct:__anon4013
215 * gcd, x and y, such that:
217 * gcd = greatest common divisor of a and b
218 * gcd = x*a + y*b
227 result.gcd = a;
234 result.gcd = tmp.gcd;
279 * = A * (\p a * gcd) + B * (\p b * gcd)
[all...]
/opensolaris-onvv-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_io.h597 #define IS_CRSRV(gcd) (IS_RSRV(&(gcd)->devices->id_cache_dev))
598 #define IS_RRSRV(gcd) (IS_RSRV(&(gcd)->devices->id_raw_dev))
600 #define IS_RFAILED(gcd) \
601 (RFAILED(&(gcd)->devices->id_cache_dev) || \
602 RFAILED(&(gcd)->devices->id_raw_dev))
607 #define RDC_U_FD(gcd) (IS_CRSRV(gcd) ? (gcd)
[all...]
/opensolaris-onvv-gate/usr/src/lib/libc/port/gen/
H A Dgetopt_long.c112 static int gcd(int, int);
164 gcd(int a, int b) function
195 ncycle = gcd(nnonopts, nopts);
/opensolaris-onvv-gate/usr/src/common/bignum/
H A Dbignum.h155 BIG_ERR_CODE big_ext_gcd_pos(BIGNUM *gcd, BIGNUM *cm, BIGNUM *ce,
/opensolaris-onvv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/Math/
H A DBigRat.pm347 my $gcd = $x->{_n}->bgcd($x->{_d});
349 if (!$gcd->is_one())
351 $x->{_n}->bdiv($gcd);
352 $x->{_d}->bdiv($gcd);
427 # 1 1 gcd(3,4) = 1 1*3 + 1*4 7
431 # we do not compute the gcd() here, but simple do:
436 # the gcd() calculation and reducing is then done in bnorm()
507 # According to Knuth, this can be optimized by doingtwice gcd (for d and n)
H A DBigInt.pm1572 # (i.e. their gcd is not one) then NaN is returned.
2380 mod sqrt root fac pow modinv modpow log_int gcd
2664 my $gcd = Math::BigInt::bgcd(@values);
/opensolaris-onvv-gate/usr/src/common/mpi/
H A Dmpi.c1890 ... by computing the product, and dividing out the gcd.
1895 mp_int gcd, prod; local
1901 if((res = mp_init(&gcd, FLAG(a))) != MP_OKAY)
1908 if((res = mp_gcd(a, b, &gcd)) != MP_OKAY)
1911 res = mp_div(&prod, &gcd, c, NULL);
1916 mp_clear(&gcd);
/opensolaris-onvv-gate/usr/src/uts/common/fs/nfs/
H A Dnfs4_vfsops.c337 gss_clntdata_t *gcd = (gss_clntdata_t *)fsecdata->data; local
339 tsecdata->data = (caddr_t)copy_sec_data_gss(gcd);

Completed in 146 milliseconds