[Gmp-commit] /var/hg/gmp: mpz/powm.c: Use NORMALIZE_NOT_ZERO.
mercurial at gmplib.org
mercurial at gmplib.org
Mon Dec 9 09:25:15 UTC 2019
details: /var/hg/gmp/rev/ab0543fdce2a
changeset: 17994:ab0543fdce2a
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Mon Dec 09 10:22:42 2019 +0100
description:
mpz/powm.c: Use NORMALIZE_NOT_ZERO.
diffstat:
mpz/powm.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 505381b71d95 -r ab0543fdce2a mpz/powm.c
--- a/mpz/powm.c Mon Dec 09 09:55:16 2019 +0100
+++ b/mpz/powm.c Mon Dec 09 10:22:42 2019 +0100
@@ -125,11 +125,11 @@
rn = n;
MPN_NORMALIZE (rp, rn);
- if (SIZ(b) < 0 && rn != 0)
+ if (rn != 0 && SIZ(b) < 0)
{
mpn_sub (rp, mp, n, rp, rn);
rn = n;
- MPN_NORMALIZE (rp, rn);
+ MPN_NORMALIZE_NOT_ZERO (rp, rn);
}
}
else
More information about the gmp-commit
mailing list