]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/fma.3
user_namespaces.7: Minor rewordings of recently added text
[thirdparty/man-pages.git] / man3 / fma.3
index ac5613c42a777d7fa0cb6d40f6b0d63f00703719..f73fc9af1d4e7f2a13294059522e5c1d190a62a4 100644 (file)
@@ -9,43 +9,35 @@
 .\" Modified 2004-11-15, Added further text on FLT_ROUNDS
 .\"    as suggested by AEB and Fabian Kreutz
 .\"
-.TH FMA 3  2013-09-17 "" "Linux Programmer's Manual"
+.TH FMA 3  2017-09-15 "" "Linux Programmer's Manual"
 .SH NAME
 fma, fmaf, fmal \- floating-point multiply and add
 .SH SYNOPSIS
 .nf
 .B #include <math.h>
-.sp
+.PP
 .BI "double fma(double " x ", double " y ", double " z );
-.br
 .BI "float fmaf(float " x ", float " y ", float " z );
-.br
 .BI "long double fmal(long double " x ", long double " y ", long double " z );
 .fi
-.sp
+.PP
 Link with \fI\-lm\fP.
-.sp
+.PP
 .in -4n
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):
 .in
-.sp
+.PP
 .ad l
 .BR fma (),
 .BR fmaf (),
 .BR fmal ():
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
-_POSIX_C_SOURCE\ >=\ 200112L;
-.br
-or
-.I cc\ -std=c99
+_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
 .RE
 .ad
 .SH DESCRIPTION
-The
-.BR fma ()
-function computes
+These functions compute
 .IR x " * " y " + " z .
 The result is rounded as one ternary operation according to the
 current rounding mode (see
@@ -54,13 +46,13 @@ current rounding mode (see
 These functions return the value of
 .IR x " * " y " + " z ,
 rounded as one ternary operation.
-
+.PP
 If
 .I x
 or
 .I y
 is a NaN, a NaN is returned.
-
+.PP
 If
 .I x
 times
@@ -70,7 +62,7 @@ is an exact infinity, and
 is an infinity with the opposite sign,
 a domain error occurs,
 and a NaN is returned.
-
+.PP
 .\" 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
@@ -86,7 +78,7 @@ 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.
-
+.PP
 If one of
 .I x
 or
@@ -97,7 +89,7 @@ is a NaN,
 .\" POSIX.1 makes the domain error optional for this case.
 a domain error occurs, and
 a NaN is returned.
-
+.PP
 If
 .I x
 times
@@ -106,11 +98,11 @@ is not an infinity times zero (or vice versa), and
 .I z
 is a NaN,
 a NaN is returned.
-
+.PP
 If the result overflows,
 a range error occurs, and
 an infinity with the correct sign is returned.
-
+.PP
 If the result underflows,
 a range error occurs, and
 a signed 0 is returned.
@@ -154,15 +146,21 @@ These functions do not set
 .SH VERSIONS
 These functions first appeared in glibc in version 2.1.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw21 lb lb
+l l l.
+Interface      Attribute       Value
+T{
 .BR fma (),
 .BR fmaf (),
-and
 .BR fmal ()
-functions are thread-safe.
+T}     Thread safety   MT-Safe
+.TE
 .SH CONFORMING TO
-C99, POSIX.1-2001.
+C99, POSIX.1-2001, POSIX.1-2008.
 .SH SEE ALSO
 .BR remainder (3),
 .BR remquo (3)