diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2011-01-13 10:20:27 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2011-01-13 10:20:27 +0100 |
commit | 120e9bdf084deb2882d0e7d17967c3ec057f988e (patch) | |
tree | a35b1105bee91508d8cb58f7b200d8aa4eced0f0 /mpz/mul.c | |
parent | 87a9baf1111aa2822207cd765bd54a71c791656e (diff) | |
download | gmp-120e9bdf084deb2882d0e7d17967c3ec057f988e.tar.gz |
mpz/mul: Remove redundant size computation
Diffstat (limited to 'mpz/mul.c')
-rw-r--r-- | mpz/mul.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -93,7 +93,7 @@ mpz_mul (mpz_ptr w, mpz_srcptr u, mpz_srcptr v) /* Ensure W has space enough to store the result. */ wsize = usize + vsize; - if (ALLOC(w) < wsize) + if (ALLOC (w) < wsize) { if (wp == up || wp == vp) { @@ -132,13 +132,11 @@ mpz_mul (mpz_ptr w, mpz_srcptr u, mpz_srcptr v) if (up == vp) { mpn_sqr (wp, up, usize); - wsize = usize + vsize; cy_limb = wp[wsize - 1]; } else { cy_limb = mpn_mul (wp, up, usize, vp, vsize); - wsize = usize + vsize; } wsize -= cy_limb == 0; |