summaryrefslogtreecommitdiff
path: root/src/atan2u.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-02-03 00:37:13 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-02-03 00:37:13 +0000
commit379682e70e76bb59be5039d3d0156ef7d2ea25b0 (patch)
tree11312c02d237e87528f888dd72a903190005d2d5 /src/atan2u.c
parentf7a520eb3f5b4284b94ee0bd638b3cd7bbc0c7b8 (diff)
downloadmpfr-379682e70e76bb59be5039d3d0156ef7d2ea25b0.tar.gz
[src/atan2u.c] Minor corrections in comments.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14326 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/atan2u.c')
-rw-r--r--src/atan2u.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/atan2u.c b/src/atan2u.c
index 07cc30cba..c6ebb970f 100644
--- a/src/atan2u.c
+++ b/src/atan2u.c
@@ -155,7 +155,7 @@ mpfr_atan2u (mpfr_ptr z, mpfr_srcptr y, mpfr_srcptr x, unsigned long u,
MPFR_RET_NEVER_GO_HERE ();
}
- /* IEEE 754-2019 say that atan2Pi is odd with respect to y */
+ /* IEEE 754-2019 says that atan2Pi is odd with respect to y */
/* now both y and x are regular */
if (mpfr_cmpabs (y, x) == 0)
@@ -222,7 +222,7 @@ mpfr_atan2u (mpfr_ptr z, mpfr_srcptr y, mpfr_srcptr x, unsigned long u,
mpfr_div_2ui (tmp, tmp, 1, MPFR_RNDN);
/* error <= 2^(e-prec) */
}
- /* both with x>0 and x<0 we have error <= 2^(e-prec),
+ /* both with x>0 and x<0, we have error <= 2^(e-prec),
now we want error <= 2^(expt-prec+err)
thus err = e-expt */
e -= MPFR_GET_EXP(tmp);