Searched refs:m2exp (Results 1 - 6 of 6) sorted by relevance

/netbsd-current/external/lgpl3/gmp/dist/rand/
H A Drandlc2s.c37 member (the 'm2exp' value). The end of the array is indicated with
47 unsigned long int m2exp; /* Modulus is 2 ^ m2exp. */ member in struct:__gmp_rand_lc_scheme_struct
81 for (sp = __gmp_rand_lc_scheme; sp->m2exp != 0; sp++)
82 if (sp->m2exp / 2 >= size)
89 gmp_randinit_lc_2exp (rstate, a, sp->c, sp->m2exp);
H A Drandlc2x.c36 _mp_seed holds the current seed value, in the range 0 to 2^m2exp-1.
43 _mp_a is the "a" multiplier, in the range 0 to 2^m2exp-1. SIZ(_mp_a) is
54 _mp_m2exp gives the modulus, namely 2^m2exp. We demand m2exp>=1, since
55 m2exp==0 would mean no bits at all out of each iteration, which makes no
77 unsigned long int m2exp; local
86 m2exp = p->_mp_m2exp;
100 tn = BITS_TO_LIMBS (m2exp);
121 tp[m2exp / GMP_NUMB_BITS] &= (CNST_LIMB (1) << m2exp
293 gmp_randinit_lc_2exp(gmp_randstate_t rstate, mpz_srcptr a, unsigned long int c, mp_bitcnt_t m2exp) argument
[all...]
/netbsd-current/external/lgpl3/gmp/dist/tests/cxx/
H A Dt-rand.cc37 unsigned long c = 0, m2exp = 8; local
38 gmp_randclass r(gmp_randinit_lc_2exp, a, c, m2exp);
42 unsigned long m2exp = 64; local
43 gmp_randclass r(gmp_randinit_lc_2exp_size, m2exp);
49 unsigned long m2exp = ULONG_MAX; local
50 gmp_randclass r(gmp_randinit_lc_2exp_size, m2exp);
63 unsigned long m2exp = 64; local
64 gmp_randclass r(alg, m2exp);
68 unsigned long m2exp = 64; local
69 gmp_randclass r(alg, m2exp);
73 unsigned long m2exp = 64; local
[all...]
/netbsd-current/external/lgpl3/gmp/dist/tests/rand/
H A Dt-lc2exp.c28 check_zero (unsigned long m2exp) argument
38 gmp_randinit_lc_2exp (r, a, c, m2exp);
46 printf ("check_zero m2exp=%lu: didn't get zero\n", m2exp);
62 unsigned long c, m2exp; local
69 m2exp = 45L;
71 gmp_randinit_lc_2exp (r, a, c, m2exp);
78 printf ("check_nega m2exp=%lu: didn't get zero\n", m2exp);
90 unsigned long c, m2exp, bit local
123 unsigned long c, m2exp; local
[all...]
H A Dfindlc.c95 const char usage[] = "usage: findlc [-dv] m2exp [low_merit [high_merit]]\n";
102 unsigned long int m2exp; local
160 m2exp = atol (argv[0]);
162 mpz_mul_2exp (m, m, m2exp);
185 mpz_init_set_d (min, 0.01 * pow (2.0, (double) m2exp));
186 mpz_init_set_d (max, 0.99 * pow (2.0, (double) m2exp));
188 mpz_true_random (s, m2exp); /* Start. */
195 mpz_mod_2exp (acc, acc, m2exp);
H A Dgen.c59 "usage: gen [-bhpq] [-a n] [-c a,c,m2exp] [-C a,c,m] [-f func] [-g alg] [-m n] [-s n] " \
64 " -c a,c,m2exp use supplied LC scheme\n" \
80 unsigned long int m2exp = 0; local
143 case 'c': /* User supplied LC scheme: a,c,m2exp */
170 m2exp = atol (str_m);
294 gmp_randinit_lc_2exp (rstate, z_a, ul_adder, m2exp);

Completed in 258 milliseconds