summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-05-20 09:17:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2021-05-20 09:17:35 +0000
commit814905dd83008bb5ef60c3d1504b4ff9a997357f (patch)
tree805a7d8eb362b7d59422cd07835eeec8fe29e638
parent2fa00c0704b669b72d0367b14f566b1ec4bd50ba (diff)
downloadmpfr-814905dd83008bb5ef60c3d1504b4ff9a997357f.tar.gz
[src/rem1.c] Improved comments.
git-svn-id: https://scm.gforge.inria.fr/anonscm/svn/mpfr/trunk@14528 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/rem1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rem1.c b/src/rem1.c
index 62c080019..c464c3e63 100644
--- a/src/rem1.c
+++ b/src/rem1.c
@@ -40,10 +40,10 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
If rem is zero, then it has the sign of x.
The returned 'int' is the inexact flag giving the place of rem wrt x - q*y.
- If x or y is NaN: *quo is undefined, rem is NaN.
- If x is Inf, whatever y: *quo is undefined, rem is NaN.
+ If x or y is NaN: *quo is unspecified, rem is NaN.
+ If x is Inf, whatever y: *quo is unspecified, rem is NaN.
If y is Inf, x not NaN nor Inf: *quo is 0, rem is x.
- If y is 0, whatever x: *quo is undefined, rem is NaN.
+ If y is 0, whatever x: *quo is unspecified, rem is NaN.
If x is 0, whatever y (not NaN nor 0): *quo is 0, rem is x.
Otherwise if x and y are neither NaN, Inf nor 0, q is always defined,
@@ -68,7 +68,7 @@ mpfr_rem1 (mpfr_ptr rem, long *quo, mpfr_rnd_t rnd_q,
if (MPFR_IS_NAN (x) || MPFR_IS_NAN (y) || MPFR_IS_INF (x)
|| MPFR_IS_ZERO (y))
{
- /* for remquo, quo is undefined */
+ /* for remquo, *quo is unspecified */
MPFR_SET_NAN (rem);
MPFR_RET_NAN;
}