summaryrefslogtreecommitdiff
path: root/src/rint.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-06-03 00:45:28 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-06-03 00:45:28 +0000
commitef8bdea66f7aa6aa4291757bb89ff9f3af96ad64 (patch)
tree36f236f606289506fcb7274586fb83c66def1e68 /src/rint.c
parentbcb29ed8bcf0d0375668e43245a902af7cf49014 (diff)
downloadmpfr-ef8bdea66f7aa6aa4291757bb89ff9f3af96ad64.tar.gz
[src/rint.c] Added a comment about the mpfr_rint_* functions.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9485 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/rint.c')
-rw-r--r--src/rint.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rint.c b/src/rint.c
index d17817a43..867e4df59 100644
--- a/src/rint.c
+++ b/src/rint.c
@@ -338,6 +338,10 @@ mpfr_floor (mpfr_ptr r, mpfr_srcptr u)
* the flag setting for intermediate overflow in the test suite without
* involving huge non-integer numbers (thus in huge precision). This
* should also be faster.
+ *
+ * Moreover we need to save the flags and restore them after calling the
+ * mpfr_round, mpfr_trunc, mpfr_ceil, mpfr_floor functions because these
+ * functions set the inexact flag when the argument is not an integer.
*/
#undef mpfr_rint_round