diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-30 16:11:33 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2012-04-30 16:11:33 +0200 |
commit | d7d952d6c2dade7e46363efac238f920ac4fdbcf (patch) | |
tree | e5dc79983d26ba9c9158179aecb6b27b54241e55 /mpz/bin_uiui.c | |
parent | 7534012a4efa3d7f269891b7614b212398914e9d (diff) | |
download | gmp-d7d952d6c2dade7e46363efac238f920ac4fdbcf.tar.gz |
Share log_n_max and its table.
Diffstat (limited to 'mpz/bin_uiui.c')
-rw-r--r-- | mpz/bin_uiui.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/mpz/bin_uiui.c b/mpz/bin_uiui.c index 02defa32b..af8a76c39 100644 --- a/mpz/bin_uiui.c +++ b/mpz/bin_uiui.c @@ -547,18 +547,6 @@ primesieve_size (mp_limb_t n) { return n_to_bit(n) / GMP_LIMB_BITS + 1; } } \ } while (0) -/* n^log <= GMP_NUMB_MAX, a limb can store log factors less than n */ -static unsigned -log_n_max (mp_limb_t n) -{ - static const mp_limb_t table[] = { NTH_ROOT_NUMB_MASK_TABLE }; - unsigned log; - - for (log = numberof (table); n > table[log - 1]; log--); - - return log; -} - /* Returns an approximation of the sqare root of x. * * It gives: x <= limb_apprsqrt (x) ^ 2 < x * 9/4 */ static mp_limb_t |