diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-03 00:45:28 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-03 00:45:28 +0000 |
commit | ef8bdea66f7aa6aa4291757bb89ff9f3af96ad64 (patch) | |
tree | 36f236f606289506fcb7274586fb83c66def1e68 /src/rint.c | |
parent | bcb29ed8bcf0d0375668e43245a902af7cf49014 (diff) | |
download | mpfr-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.c | 4 |
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 |