Searched refs:randstate (Results 1 - 7 of 7) sorted by relevance
/netbsd-current/external/lgpl3/gmp/dist/demos/perl/GMP/ |
H A D | Rand.pm | 39 randstate mpf_urandomb mpz_rrandomb
|
/netbsd-current/external/lgpl3/mpc/dist/tools/bench/ |
H A D | mpcbench.c | 132 bench_random_array (int n, mpfr_prec_t precision, gmp_randstate_t randstate) argument 148 mpc_urandom (ptr[j], randstate); 183 compute_score (double *zscore, int op, gmp_randstate_t randstate) argument 209 xptr = bench_random_array (NB_RAND_CPLX, precision1, randstate); 210 yptr = bench_random_array (NB_RAND_CPLX, precision2, randstate); 211 zptr = bench_random_array (NB_RAND_CPLX, precision3, randstate); 300 gmp_randstate_t randstate; local 302 gmp_randinit_default (randstate); 305 compute_score (&(score[i]), i, randstate); 337 gmp_randclear (randstate); [all...] |
/netbsd-current/external/lgpl3/mpfr/dist/tools/bench/ |
H A D | mpfrbench.c | 126 bench_random_array (int n, mpfr_prec_t precision, gmp_randstate_t randstate) argument 141 mpfr_urandomb (ptr[j], randstate); 148 compute_score (mpz_t zscore, int op, gmp_randstate_t randstate) argument 169 xptr = bench_random_array (NB_RAND_FLOAT, precision1, randstate); 170 yptr = bench_random_array (NB_RAND_FLOAT, precision2, randstate); 171 zptr = bench_random_array (NB_RAND_FLOAT, precision3, randstate); 259 gmp_randstate_t randstate; local 261 gmp_randinit_default (randstate); 265 compute_score (score[i], i, randstate); 307 gmp_randclear (randstate); [all...] |
/netbsd-current/sys/rump/librump/rumpvfs/ |
H A D | rumpblk.c | 140 static unsigned randstate; variable 197 randstate = strtoul(buf, NULL, 10); 199 randstate = cprng_fast32(); 202 "seed %u\n", blkfail, BLKFAIL_MAX, randstate); 577 return (randstate = randstate * 1103515245 + 12345) % (0x80000000L);
|
/netbsd-current/external/lgpl3/gmp/dist/demos/perl/ |
H A D | GMP.pm | 438 generation. C<randstate> creates a new object, for example, 440 use GMP::Rand qw(randstate); 441 $r = randstate(); 442 $r = randstate('lc_2exp_size', 64); 443 $r = randstate('lc_2exp', 43840821, 1, 32); 444 $r = randstate('mt'); 445 $r = randstate($another_r); 451 C<gmp_randinit_mt>. Or when passed another randstate object, a copy of that 458 A randstate can be seeded with an integer or mpz, using the C<seed> method. 479 $r = randstate(); [all...] |
H A D | test.pl | 1751 { my $r = randstate(); ok (defined $r); } 1752 { my $r = randstate('lc_2exp', 1, 2, 3); ok (defined $r); } 1753 { my $r = randstate('lc_2exp_size', 64); ok (defined $r); } 1754 { my $r = randstate('lc_2exp_size', 999999999); ok (! defined $r); } 1755 { my $r = randstate('mt'); ok (defined $r); } 1757 { # copying a randstate results in same sequence 1758 my $r1 = randstate('lc_2exp_size', 64); 1760 my $r2 = randstate($r1); 1771 { my $r = randstate(); 1779 { my $r = randstate(); [all...] |
H A D | GMP.xs | 168 (TRACE (printf (" active %ld mpz, %ld mpq, %ld mpf, %ld randstate\n", \ 314 typedef __gmp_randstate_struct *randstate; 321 #define SvRANDSTATE(s) SvMPX(s,randstate) 3069 randstate 3072 GMP::Rand::randstate = 1 3135 randstate r 3146 randstate r 3154 randstate r 3175 randstate r 3186 randstate [all...] |
Completed in 221 milliseconds