summaryrefslogtreecommitdiff
path: root/mpz/gcdext.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-05 01:13:17 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-05 01:13:17 +0100
commitf608c93764775bbf3054393a099869e47b622fef (patch)
treea0e3a3db2367aaf1210f6a7b1813b20e393e8ac5 /mpz/gcdext.c
parent29e14e2005cb3b31cd431a4dc0c385e9a45e6e2a (diff)
downloadgmp-f608c93764775bbf3054393a099869e47b622fef.tar.gz
mpz/gcdext.c: Use mpz_t instead of __mpz_struct.
Diffstat (limited to 'mpz/gcdext.c')
-rw-r--r--mpz/gcdext.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mpz/gcdext.c b/mpz/gcdext.c
index 7e8c330a7..6bdc6a3b7 100644
--- a/mpz/gcdext.c
+++ b/mpz/gcdext.c
@@ -94,17 +94,17 @@ mpz_gcdext (mpz_ptr g, mpz_ptr s, mpz_ptr t, mpz_srcptr a, mpz_srcptr b)
if (t != NULL)
{
mpz_t x;
- __mpz_struct gtmp, stmp;
+ mpz_t gtmp, stmp;
- PTR (&gtmp) = tmp_gp;
- SIZ (&gtmp) = gsize;
+ PTR (gtmp) = tmp_gp;
+ SIZ (gtmp) = gsize;
- PTR (&stmp) = tmp_sp;
- SIZ (&stmp) = tmp_ssize;
+ PTR (stmp) = tmp_sp;
+ SIZ (stmp) = tmp_ssize;
MPZ_TMP_INIT (x, ssize + asize + 1);
- mpz_mul (x, &stmp, a);
- mpz_sub (x, &gtmp, x);
+ mpz_mul (x, stmp, a);
+ mpz_sub (x, gtmp, x);
mpz_divexact (t, x, b);
}