Home
last modified time | relevance | path

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

/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dbernoulli.c206 static MPFR_THREAD_ATTR unsigned long bernoulli_alloc = 0; variable
215 if (bernoulli_alloc == 0) in mpfr_bernoulli_cache()
217 bernoulli_alloc = MAX(16, n + n/4); in mpfr_bernoulli_cache()
219 mpfr_allocate_func (bernoulli_alloc * sizeof (mpz_t)); in mpfr_bernoulli_cache()
222 else if (n >= bernoulli_alloc) in mpfr_bernoulli_cache()
225 (bernoulli_table, bernoulli_alloc * sizeof (mpz_t), in mpfr_bernoulli_cache()
227 bernoulli_alloc = n + n/4; in mpfr_bernoulli_cache()
229 MPFR_ASSERTD (bernoulli_alloc > n); in mpfr_bernoulli_cache()
250 mpfr_free_func (bernoulli_table, bernoulli_alloc * sizeof (mpz_t)); in mpfr_bernoulli_freecache()
252 bernoulli_alloc = 0; in mpfr_bernoulli_freecache()