summaryrefslogtreecommitdiff
path: root/src/add1sp.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-09-03 14:00:33 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2019-09-03 14:00:33 +0000
commit3f5d55f7e9d4071384b44cadc2269e2fadbe7a35 (patch)
tree8412de1653ee35acafecda1327786e650c68729e /src/add1sp.c
parent82419d49fda71ac93d9cdc707ff3bc5eae146998 (diff)
downloadmpfr-3f5d55f7e9d4071384b44cadc2269e2fadbe7a35.tar.gz
[src/add1sp.c] mpfr_add1sp2n: improved a comment.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13587 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/add1sp.c')
-rw-r--r--src/add1sp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/add1sp.c b/src/add1sp.c
index 9a31f8874..8314bf175 100644
--- a/src/add1sp.c
+++ b/src/add1sp.c
@@ -550,9 +550,9 @@ mpfr_add1sp2n (mpfr_ptr a, mpfr_srcptr b, mpfr_srcptr c, mpfr_rnd_t rnd_mode)
{
/* The most significant bit of sb should be the rounding bit,
while the least GMP_NUMB_BITS-1 bits represent the sticky bit:
- * if d = GMP_NUMB_BITS, we get cp[0]
+ * if d = GMP_NUMB_BITS, we get cp[0];
* if d > GMP_NUMB_BITS: we get the least d-GMP_NUMB_BITS bits
- of cp[1], and those from cp[0] */
+ of cp[1], and those from cp[0] as the LSB of sb. */
sb = (d == GMP_NUMB_BITS) ? cp[0]
: (cp[1] << (2*GMP_NUMB_BITS-d)) | (cp[0] != 0);
a0 = bp[0] + (cp[1] >> (d - GMP_NUMB_BITS));