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 Franois <nicolas.francois@centraliens.net>
This commit is contained in:
Michael Kerrisk 2008-09-29 13:42:58 +02:00
parent 69cb728c2f
commit c42ad30f8c
1 changed files with 6 additions and 0 deletions

View File

@ -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