summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-30 09:41:37 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-30 09:41:37 +0000
commit447e8b9e2edd9e5d65df568caa13654240375ba4 (patch)
tree11bf7aaa5e7d1ec94884bcfdf96bbde71f5fb550
parentc00d280de35cae927ec6fe90bb4e7c5a7238082d (diff)
downloadmpfr-447e8b9e2edd9e5d65df568caa13654240375ba4.tar.gz
[src/next.c] Added a note concerning the exceptions.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9636 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r--src/next.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/next.c b/src/next.c
index 8703fa8e5..dcfd771d9 100644
--- a/src/next.c
+++ b/src/next.c
@@ -21,6 +21,12 @@ along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
+/* Note concerning the exceptions: In case of NaN result, the NaN flag is
+ * set as usual. No underflow or overflow is generated (this contradicts
+ * the obsolete IEEE 754-1985 standard for Nextafter, but conforms to the
+ * current standard IEEE 754-2008 for nextUp and nextDown).
+ */
+
#include "mpfr-impl.h"
void