summaryrefslogtreecommitdiff
path: root/mini-gmp/mini-gmp.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2020-02-06 17:32:22 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2020-02-06 17:32:22 +0100
commit9a3698cd2434bf7f6122030383124fedf82b938c (patch)
tree37a24b8e7ddf2c83e1e0f8e22a03737be2c48996 /mini-gmp/mini-gmp.c
parent07b7a05671b51bbb7b5d9a094cc6c71ec4dcb4e9 (diff)
downloadgmp-9a3698cd2434bf7f6122030383124fedf82b938c.tar.gz
mini-gmp/mini-gmp.c (gmp_jacobi_coprime): Change syntax for loop.
Diffstat (limited to 'mini-gmp/mini-gmp.c')
-rw-r--r--mini-gmp/mini-gmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mini-gmp/mini-gmp.c b/mini-gmp/mini-gmp.c
index 66cc84625..d4039dd6c 100644
--- a/mini-gmp/mini-gmp.c
+++ b/mini-gmp/mini-gmp.c
@@ -2,7 +2,7 @@
Contributed to the GNU project by Niels Möller
-Copyright 1991-1997, 1999-2019 Free Software Foundation, Inc.
+Copyright 1991-1997, 1999-2020 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -3350,7 +3350,7 @@ gmp_jacobi_coprime (mp_limb_t a, mp_limb_t b)
gmp_ctz(c, a);
a >>= 1;
- do
+ for (;;)
{
a >>= c;
/* (2/b) = -1 if b = 3 or 5 mod 8 */
@@ -3372,7 +3372,6 @@ gmp_jacobi_coprime (mp_limb_t a, mp_limb_t b)
gmp_ctz(c, a);
++c;
}
- while (1);
}
static void