diff options
author | tege <tege@gmplib.org> | 2001-03-07 04:04:18 +0100 |
---|---|---|
committer | tege <tege@gmplib.org> | 2001-03-07 04:04:18 +0100 |
commit | c34481924bc42dedd45d2f71d1960d671752a5b8 (patch) | |
tree | 751c771b4c7eb6da8ff4cd5c7ad846a850188806 /mpn/cray | |
parent | fe3a5d69999aa45d2c2275d2bef054bdbac8e7b4 (diff) | |
download | gmp-c34481924bc42dedd45d2f71d1960d671752a5b8.tar.gz |
Don't call mpn_sub_n with size 0.
Diffstat (limited to 'mpn/cray')
-rw-r--r-- | mpn/cray/cfp/submul_1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mpn/cray/cfp/submul_1.c b/mpn/cray/cfp/submul_1.c index 08159aa24..f710de2ac 100644 --- a/mpn/cray/cfp/submul_1.c +++ b/mpn/cray/cfp/submul_1.c @@ -32,7 +32,8 @@ mpn_submul_1 (mp_ptr rp, mp_srcptr up, mp_size_t n, mp_limb_t limb) GMPN_MULWW (p1, p0, up, &n, &limb); cy_limb = mpn_sub_n (tp, rp, p0, n); rp[0] = tp[0]; - cy_limb += mpn_sub_n (rp + 1, tp + 1, p1, n - 1); + if (n != 1) + cy_limb += mpn_sub_n (rp + 1, tp + 1, p1, n - 1); cy_limb += p1[n - 1]; return cy_limb; |