Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Nettle
nettle
Commits
80e41741
Commit
80e41741
authored
Jan 07, 2008
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New FIXME comment.
Rev: nettle/bignum-next-prime.c:1.4
parent
c882d495
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
bignum-next-prime.c
bignum-next-prime.c
+6
-1
No files found.
bignum-next-prime.c
View file @
80e41741
...
@@ -104,7 +104,12 @@ nettle_next_prime(mpz_t p, mpz_t n, unsigned count, unsigned prime_limit,
...
@@ -104,7 +104,12 @@ nettle_next_prime(mpz_t p, mpz_t n, unsigned count, unsigned prime_limit,
/* Compute residues modulo small odd primes */
/* Compute residues modulo small odd primes */
/* FIXME: Could be sped up by collecting limb-sized products of the
/* FIXME: Could be sped up by collecting limb-sized products of the
primes, to reduce the calls to mpz_fdiv_ui */
primes, to reduce the calls to mpz_fdiv_ui */
/* FIXME: Could also handle the first few primes separately; compute
the residue mod 15015 = 3 * 7 * 11 * 13, and tabulate the steps
between the 5760 odd numbers in this interval that have no factor
in common with 15015.
*/
TMP_ALLOC
(
moduli
,
prime_limit
);
TMP_ALLOC
(
moduli
,
prime_limit
);
{
{
unsigned
i
;
unsigned
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment