This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.24-487-g3fdf179
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 16 Dec 2016 23:41:22 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-487-g3fdf179
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 3fdf17926c09fd403dd499005650e148774f1018 (commit)
from ea1bd74defcf9d5291d14972e63105168ca9eb4f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3fdf17926c09fd403dd499005650e148774f1018
commit 3fdf17926c09fd403dd499005650e148774f1018
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Dec 16 23:41:00 2016 +0000
Document sNaN argument error handling.
TS 18661-1 says that "Whether a signaling NaN input causes a domain
error is implementation-defined.". Considering it a domain error
would (given glibc's math_errhandling definition) mean setting errno
to EDOM. glibc consistently does not set errno for sNaN inputs
(unless it does so for qNaN as well, i.e. iseqsig), so this patch adds
documentation of the implementation-defined choice not to treat this
case as a domain error.
* manual/arith.texi (Math Error Reporting): Document that sNaN
arguments are not considered domain errors.
diff --git a/ChangeLog b/ChangeLog
index 1d93077..5186792 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-12-16 Joseph Myers <joseph@codesourcery.com>
+
+ * manual/arith.texi (Math Error Reporting): Document that sNaN
+ arguments are not considered domain errors.
+
2016-12-16 Zack Weinberg <zackw@panix.com>
Florian Weimer <fweimer@redhat.com>
Nick Mathewson <nickm@torproject.org>
diff --git a/manual/arith.texi b/manual/arith.texi
index 41ab577..a20a4de 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -939,6 +939,11 @@ guaranteed; it is intended that @theglibc{} should set it when the
underflow is to an appropriately signed zero, but not necessarily for
other underflows.
+When a math function has an argument that is a signaling NaN,
+@theglibc{} does not consider this a domain error, so @code{errno} is
+unchanged, but the invalid exception is still raised (except for a few
+functions that are specified to handle signaling NaNs differently).
+
Some of the math functions are defined mathematically to result in a
complex value over parts of their domains. The most familiar example of
this is taking the square root of a negative number. The complex math
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
manual/arith.texi | 5 +++++
2 files changed, 10 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources