[Gmp-commit] /var/hg/gmp: mpz/primorial_ui.c: Rename a variable used in a loo...
mercurial at gmplib.org
mercurial at gmplib.org
Thu Aug 11 22:58:55 CEST 2022
details: /var/hg/gmp/rev/d337756619a0
changeset: 18364:d337756619a0
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Thu Aug 11 22:58:46 2022 +0200
description:
mpz/primorial_ui.c: Rename a variable used in a loop, for clarity
diffstat:
mpz/primorial_ui.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r cc75cab76738 -r d337756619a0 mpz/primorial_ui.c
--- a/mpz/primorial_ui.c Sun Jun 19 15:30:05 2022 +0200
+++ b/mpz/primorial_ui.c Thu Aug 11 22:58:46 2022 +0200
@@ -102,8 +102,8 @@
max_prod = GMP_NUMB_MAX / n;
for (mp_limb_t i = 4, *sp = sieve; i < n; i += GMP_LIMB_BITS * 3)
- for (mp_limb_t b = i, x = ~ *(sp++); x != 0; b += 3, x >>= 1)
- if (x & 1)
+ for (mp_limb_t b = i, k = ~ *(sp++); k != 0; b += 3, k >>= 1)
+ if (k & 1)
{
mp_limb_t prime = b | 1;
FACTOR_LIST_STORE (prime, prod, max_prod, factors, j);
More information about the gmp-commit
mailing list