/haiku-buildtools/gcc/gmp/ |
H A D | randdef.c | 24 gmp_randinit_default (gmp_randstate_t rstate) argument 26 gmp_randinit_mt (rstate);
|
H A D | randclr.c | 24 gmp_randclear (gmp_randstate_t rstate) argument 26 (*((gmp_randfnptr_t *) RNG_FNPTR (rstate))->randclear_fn) (rstate);
|
H A D | randsd.c | 24 gmp_randseed (gmp_randstate_t rstate, argument 27 (*((gmp_randfnptr_t *) RNG_FNPTR (rstate))->randseed_fn) (rstate, seed);
|
H A D | randsdui.c | 25 gmp_randseed_ui (gmp_randstate_t rstate, argument 32 gmp_randseed (rstate, zseed);
|
H A D | rand.c | 35 gmp_randinit (gmp_randstate_t rstate, argument 47 __gmp_randstate_struct *rstate; local 50 rstate = va_arg (ap, __gmp_randstate_struct *); 56 if (! gmp_randinit_lc_2exp_size (rstate, va_arg (ap, unsigned long)))
|
H A D | randbui.c | 28 gmp_urandomb_ui (gmp_randstate_ptr rstate, unsigned long bits) argument 39 _gmp_rand (a, rstate, MIN (bits, BITS_PER_ULONG));
|
H A D | randlc2s.c | 65 gmp_randinit_lc_2exp_size (gmp_randstate_t rstate, mp_bitcnt_t size) argument 79 gmp_randinit_lc_2exp (rstate, a, sp->c, sp->m2exp);
|
H A D | randmui.c | 36 gmp_urandomm_ui (gmp_randstate_ptr rstate, unsigned long n) argument 58 _gmp_rand (a, rstate, bits); 69 rstate algorithm. Return r%n. */
|
H A D | randmt.h | 39 void __gmp_randclear_mt __GMP_PROTO ((gmp_randstate_t rstate));
|
H A D | randmts.c | 99 randseed_mt (gmp_randstate_t rstate, mpz_srcptr seed) argument 108 p = (gmp_rand_mt_struct *) RNG_STATE (rstate); 153 gmp_randinit_mt (gmp_randstate_t rstate) argument 155 __gmp_randinit_mt_noseed (rstate); 156 RNG_FNPTR (rstate) = (void *) &Mersenne_Twister_Generator;
|
H A D | randlc2x.c | 62 lc (mp_ptr rp, gmp_randstate_t rstate) argument 74 p = (gmp_rand_lc_struct *) RNG_STATE (rstate); 142 randget_lc (gmp_randstate_t rstate, mp_ptr rp, unsigned long int nbits) argument 151 p = (gmp_rand_lc_struct *) RNG_STATE (rstate); 170 lc (tp, rstate); 183 lc (r2p, rstate); 194 lc (tp, rstate); 221 randseed_lc (gmp_randstate_t rstate, mpz_srcptr seed) argument 223 gmp_rand_lc_struct *p = (gmp_rand_lc_struct *) RNG_STATE (rstate); 236 randclear_lc (gmp_randstate_t rstate) argument 283 gmp_randinit_lc_2exp(gmp_randstate_t rstate, mpz_srcptr a, unsigned long int c, mp_bitcnt_t m2exp) argument [all...] |
/haiku-buildtools/gcc/gmp/mpz/ |
H A D | urandomb.c | 26 mpz_urandomb (mpz_ptr rop, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument 34 _gmp_rand (rp, rstate, nbits);
|
H A D | rrandomb.c | 28 mpz_rrandomb (mpz_ptr x, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument 36 gmp_rrandomb (PTR(x), rstate, nbits); local 52 gmp_rrandomb (mp_ptr rp, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument 65 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL); 73 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL); 82 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL);
|
H A D | millerrabin.c | 43 gmp_randstate_t rstate; local 74 gmp_randinit_default (rstate); 80 mpz_urandomm (x, rstate, nm3); 86 gmp_randclear (rstate);
|
/haiku-buildtools/gcc/gmp/mpn/generic/ |
H A D | random2.c | 39 gmp_randstate_ptr rstate = RANDS; local 47 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL); 53 gmp_rrandomb (rp, rstate, n * GMP_NUMB_BITS - bit_pos); 57 gmp_rrandomb (mp_ptr rp, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument 70 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL); 78 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL); 87 _gmp_rand (&ranm, rstate, BITS_PER_RANDCALL);
|
/haiku-buildtools/gcc/gmp/tests/ |
H A D | misc.c | 332 mpz_erandomb (mpz_ptr rop, gmp_randstate_t rstate, unsigned long nbits) argument 334 mpz_urandomb (rop, rstate, gmp_urandomm_ui (rstate, nbits)); 338 mpz_erandomb_nonzero (mpz_ptr rop, gmp_randstate_t rstate, unsigned long nbits) argument 340 mpz_erandomb (rop, rstate, nbits); 346 mpz_errandomb (mpz_ptr rop, gmp_randstate_t rstate, unsigned long nbits) argument 348 mpz_rrandomb (rop, rstate, gmp_urandomm_ui (rstate, nbits)); 352 mpz_errandomb_nonzero (mpz_ptr rop, gmp_randstate_t rstate, unsigned long nbits) argument 354 mpz_errandomb (rop, rstate, nbit 360 mpz_negrandom(mpz_ptr rop, gmp_randstate_t rstate) argument 387 gmp_randstate_t rstate; local [all...] |
/haiku-buildtools/gcc/mpfr/src/ |
H A D | urandom.c | 32 random_rounding_bit (gmp_randstate_t rstate) argument 36 mpfr_rand_raw (&r, rstate, 1); 42 mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode) argument 63 && random_rounding_bit (rstate))) 82 mpfr_rand_raw (rp, rstate, DRAW_BITS); 103 && (cnt != DRAW_BITS || random_rounding_bit (rstate)))) 122 mpfr_rand_raw (rp, rstate, nbits - 1); 132 || (rnd_mode == MPFR_RNDN && random_rounding_bit (rstate)))
|
H A D | urandomb.c | 33 mpfr_rand_raw (mpfr_limb_ptr mp, gmp_randstate_t rstate, argument 48 mpz_urandomb (z, rstate, nbits); 52 mpfr_urandomb (mpfr_ptr rop, gmp_randstate_t rstate) argument 70 mpfr_rand_raw (rp, rstate, nbits);
|
/haiku-buildtools/gcc/gmp/tests/rand/ |
H A D | t-urbui.c | 26 /* Expect numbers generated by rstate to obey the number of bits requested. 30 check_one (const char *name, gmp_randstate_ptr rstate) argument 42 got = gmp_urandomb_ui (rstate, bits);
|
H A D | t-urmui.c | 26 /* Expect numbers generated by rstate to obey the limit requested. */ 28 check_one (const char *name, gmp_randstate_ptr rstate) argument 52 got = gmp_urandomm_ui (rstate, n);
|
H A D | t-lc2exp.c | 155 gmp_randstate_t rstate; local 159 gmp_randinit_lc_2exp (rstate, a, 1L, 384L); 161 mpz_urandomb (a, rstate, 20L); 163 gmp_randclear (rstate); 171 gmp_randstate_t rstate; local 181 gmp_randinit_lc_2exp (rstate, a, 5L, 64L); 186 gmp_randseed (rstate, sd); 189 mpz_urandomb (a, rstate, 80L); 192 gmp_randclear (rstate);
|
H A D | t-rand.c | 145 gmp_randstate_t rstate; local 182 gmp_randinit (rstate, GMP_RAND_ALG_LC, a->nbits); 185 gmp_randseed_ui (rstate, SEED); 189 mpz_urandomb (rz, rstate, a->nbits); 204 gmp_randclear (rstate); 212 gmp_randinit (rstate, GMP_RAND_ALG_LC, a->nbits); 215 gmp_randseed_ui (rstate, SEED); 221 mpf_urandomb (rf, rstate, a->nbits); 236 gmp_randclear (rstate); 247 gmp_randinit (rstate, GMP_RAND_ALG_L [all...] |
H A D | gen.c | 91 gmp_randstate_t rstate; local 288 gmp_randinit_mt (rstate); 293 gmp_randinit_lc_2exp_size (rstate, MIN (128, size)); 295 gmp_randinit_lc_2exp (rstate, z_a, ul_adder, m2exp); 303 gmp_randseed (rstate, z_seed); 364 mpz_urandomb (z1, rstate, size); 381 mpz_urandomm (z1, rstate, z_mmax); 398 mpf_urandomb (f1, rstate, size); 466 gmp_randclear (rstate);
|
/haiku-buildtools/gcc/gmp/mpf/ |
H A D | urandomb.c | 27 mpf_urandomb (mpf_t rop, gmp_randstate_t rstate, mp_bitcnt_t nbits) argument 44 _gmp_rand (rp, rstate, nbits);
|
/haiku-buildtools/gcc/mpfr/tests/ |
H A D | random2.c | 35 gmp_randstate_t rstate) 68 mpfr_rand_raw (&elimb, rstate, BITS_PER_RANDCALL); 86 mpfr_rand_raw (&elimb, rstate, BITS_PER_RANDCALL); 34 mpfr_random2(mpfr_ptr x, mp_size_t size, mpfr_exp_t exp, gmp_randstate_t rstate) argument
|