From 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:41:07 +0200 Subject: Merging upstream version 6.7. Signed-off-by: Daniel Baumann --- man3/fma.3 | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'man3/fma.3') diff --git a/man3/fma.3 b/man3/fma.3 index e9a3313..a93042b 100644 --- a/man3/fma.3 +++ b/man3/fma.3 @@ -8,7 +8,7 @@ .\" Modified 2004-11-15, Added further text on FLT_ROUNDS .\" as suggested by AEB and Fabian Kreutz .\" -.TH fma 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fma 3 2023-10-31 "Linux man-pages 6.7" .SH NAME fma, fmaf, fmal \- floating-point multiply and add .SH LIBRARY @@ -17,17 +17,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fma(double " x ", double " y ", double " z ); .BI "float fmaf(float " x ", float " y ", float " z ); .BI "long double fmal(long double " x ", long double " y ", long double " z ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fma (), .BR fmaf (), .BR fmal (): @@ -44,13 +44,13 @@ current rounding mode (see These functions return the value of .IR x " * " y " + " z , rounded as one ternary operation. -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x times @@ -60,7 +60,7 @@ is an exact infinity, and is an infinity with the opposite sign, a domain error occurs, and a NaN is returned. -.PP +.P .\" 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 @@ -76,7 +76,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 +.P If one of .I x or @@ -87,7 +87,7 @@ is a NaN, .\" POSIX.1 makes the domain error optional for this case. a domain error occurs, and a NaN is returned. -.PP +.P If .I x times @@ -96,11 +96,11 @@ is not an infinity times zero (or vice versa), and .I z is a NaN, a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and an infinity with the correct sign is returned. -.PP +.P If the result underflows, a range error occurs, and a signed 0 is returned. @@ -109,7 +109,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP * \fIy\fP + \fIz\fP, \ @@ -136,7 +136,7 @@ Range error: result underflow An underflow floating-point exception .RB ( FE_UNDERFLOW ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -157,7 +157,6 @@ T{ .BR fmal () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY -- cgit v1.2.3