summaryrefslogtreecommitdiff
path: root/src/sum.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-03-19 00:33:58 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-03-19 00:33:58 +0000
commit0c0167a2a6e2bce1b53eb85e6f9bb258065b3f5a (patch)
tree0d99457a6338e4f6e387d342cfcfce2e51fff7e8 /src/sum.c
parent369d3ee696446f8815bcbb001daafd61dc65c655 (diff)
downloadmpfr-0c0167a2a6e2bce1b53eb85e6f9bb258065b3f5a.tar.gz
[src/sum.c] Added comments.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/new-sum@9342 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/sum.c')
-rw-r--r--src/sum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sum.c b/src/sum.c
index a47114aa7..64ec4f533 100644
--- a/src/sum.c
+++ b/src/sum.c
@@ -886,7 +886,7 @@ sum_aux (mpfr_ptr sum, mpfr_ptr *const x, unsigned long n, mpfr_rnd_t rnd,
MPFR_ASSERTD (corr >= -1 && corr <= 2);
- if (pos)
+ if (pos) /* positive result */
{
MPFR_ASSERTD (MPFR_LIMB_MSB (sump[sn-1]) != 0);
MPFR_SET_POS (sum);
@@ -927,7 +927,7 @@ sum_aux (mpfr_ptr sum, mpfr_ptr *const x, unsigned long n, mpfr_rnd_t rnd,
}
}
}
- else
+ else /* negative result */
{
MPFR_ASSERTD (MPFR_LIMB_MSB (sump[sn-1]) == 0);
MPFR_SET_NEG (sum);