Home
last modified time | relevance | path

Searched refs:GMPG (Results 1 – 2 of 2) sorted by relevance

/PHP-5.3/ext/gmp/
H A Dphp_gmp.h80 #define GMPG(v) TSRMG(gmp_globals_id, zend_gmp_globals *, v) macro
82 #define GMPG(v) (gmp_globals.v)
H A Dgmp.c382 if (GMPG(rand_initialized)) { in ZEND_MODULE_DEACTIVATE_D()
383 gmp_randclear(GMPG(rand_state)); in ZEND_MODULE_DEACTIVATE_D()
384 GMPG(rand_initialized) = 0; in ZEND_MODULE_DEACTIVATE_D()
1375 if (!GMPG(rand_initialized)) {
1377 gmp_randinit_lc_2exp_size(GMPG(rand_state), 32L);
1380 gmp_randseed_ui(GMPG(rand_state), GENERATE_SEED());
1382 GMPG(rand_initialized) = 1;
1385 mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * GMP_LIMB_BITS);
1387 mpz_urandomb(*gmpnum_result, GMPG(rand_state), GMP_ABS (limiter) * __GMP_BITS_PER_MP_LIMB);

Completed in 7 milliseconds