[Gmp-commit] /var/hg/gmp: Typo fix.
mercurial at gmplib.org
mercurial at gmplib.org
Thu Sep 5 19:26:10 UTC 2019
details: /var/hg/gmp/rev/8c0120dc67b0
changeset: 17867:8c0120dc67b0
user: Niels M?ller <nisse at lysator.liu.se>
date: Thu Sep 05 21:25:39 2019 +0200
description:
Typo fix.
diffstat:
mpn/generic/hgcd2.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r e9714eb3dbb0 -r 8c0120dc67b0 mpn/generic/hgcd2.c
--- a/mpn/generic/hgcd2.c Thu Sep 05 21:14:30 2019 +0200
+++ b/mpn/generic/hgcd2.c Thu Sep 05 21:25:39 2019 +0200
@@ -55,7 +55,7 @@
{
mp_double_limb_t res;
res.d1 = n0 / d0;
- res.d0 = n0 - q * d0;
+ res.d0 = n0 - res.d1 * d0;
return res;
}
@@ -124,7 +124,6 @@
div1 (mp_limb_t n0, mp_limb_t d0)
{
mp_double_limb_t res;
- mp_limb_t q;
if (UNLIKELY ((d0 >> (GMP_LIMB_BITS - 3)) != 0)
|| UNLIKELY (n0 >= (d0 << 3)))
{
More information about the gmp-commit
mailing list