aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-09-29 13:42:58 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-09-29 13:42:58 +0200
commitc42ad30f8cbe0a296069d34deb88fddb92e7ee57 (patch)
tree532ed02855d6407f2baedf6d2b8bab59768cfaef /man3
parent69cb728c2f1aecb4e5ee7c661cf3dd0758186559 (diff)
downloadman-pages-c42ad30f8cbe0a296069d34deb88fddb92e7ee57.tar.gz
fma.3: Add some source code comments explaining two domain error cases.
Two of the "domain error" cases described on this page are treated in the same way on Linux, but POSIX.1 specifies some optional differences for the two cases. Make life easier for future page reviewers/editors by adding some comments explaining that POSIX.1-2001 distinguishes the two cases. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com> Reported-by: Nicolas Fran�ois <nicolas.francois@centraliens.net>
Diffstat (limited to 'man3')
-rw-r--r--man3/fma.36
1 files changed, 6 insertions, 0 deletions
diff --git a/man3/fma.3 b/man3/fma.3
index 8c9b9f4643..8fb09d1fca 100644
--- a/man3/fma.3
+++ b/man3/fma.3
@@ -62,6 +62,10 @@ is an infinity with the opposite sign,
a domain error occurs,
and a NaN is returned.
+.\" POSIX.1-2008 allows some possible differences for the following two
+.\" domain error cases, but on Linux they are treated the same (AFAICS).
+.\" Nevertheless, we'll mirror POSIX.1 and describe the two cases
+.\" separately.
If one of
.I x
or
@@ -71,6 +75,8 @@ is an infinity, the other is 0, and
is not a NaN,
a domain error occurs, and
a NaN is returned.
+.\" POSIX.1 says that a NaN or an implementation-defined value shall
+.\" be returned for this case.
If one of
.I x