diff --git a/man3/fma.3 b/man3/fma.3 index 49e8cf846..3b7c24052 100644 --- a/man3/fma.3 +++ b/man3/fma.3 @@ -1,5 +1,7 @@ .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) .\" Distributed under GPL, 2002-07-27 Walter Harms +.\" Modified 2004-11-15, Added further text on FLT_ROUNDS +.\" as suggested by AEB and Fabian Kreutz .\" .TH FMA 3 2002-07-27 "" "Linux Programmer's Manual" .SH NAME @@ -23,6 +25,21 @@ function computes .IR x " * " y " + " z . The result is rounded according to the rounding mode determined by the value of FLT_ROUNDS. +FLT_ROUNDS indicates the implementation-defined rounding +behaviour for floating-point addition, +and has one of the following values: +.IP \-1 +The rounding mode is not determinable. +.IP 0 +Roundng is towards 0. +.IP 1 +Rounding is towards nearest number. +.IP 2 +Rounding is towards positive infinity. +.IP 3 +Rounding is towards negative infinity. +.PP +Other values represent machine-dependent, non-standard rounding modes. .SH "CONFORMING TO" C99 .SH "SEE ALSO"