summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-01-14 09:12:05 +0000
committerru <ru@FreeBSD.org>2005-01-14 09:12:05 +0000
commit8ef204853467d3eda8ad02633a433e05077e12df (patch)
tree97c55e214b81641c4f71cfde0d9c9f419edfbd53 /lib/msun
parent4db2b8d392653d006688b34d58bdb4ff6bc93523 (diff)
downloadFreeBSD-src-8ef204853467d3eda8ad02633a433e05077e12df.zip
FreeBSD-src-8ef204853467d3eda8ad02633a433e05077e12df.tar.gz
Tiny markup nits.
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/man/feclearexcept.34
-rw-r--r--lib/msun/man/fegetround.36
-rw-r--r--lib/msun/man/fenv.328
-rw-r--r--lib/msun/man/fmax.37
4 files changed, 23 insertions, 22 deletions
diff --git a/lib/msun/man/feclearexcept.3 b/lib/msun/man/feclearexcept.3
index 324f142..217642c 100644
--- a/lib/msun/man/feclearexcept.3
+++ b/lib/msun/man/feclearexcept.3
@@ -58,7 +58,9 @@ whereas
.Fn feraiseexcept
raises the specified exceptions.
Raising an exception causes the corresponding flag to be set,
-and a SIGFPE is delivered to the process if the exception is unmasked.
+and a
+.Dv SIGFPE
+is delivered to the process if the exception is unmasked.
.Pp
The
.Fn fetestexcept
diff --git a/lib/msun/man/fegetround.3 b/lib/msun/man/fegetround.3
index 1461c83..c6cd417 100644
--- a/lib/msun/man/fegetround.3
+++ b/lib/msun/man/fegetround.3
@@ -37,7 +37,7 @@
.In fenv.h
.Fd "#pragma STDC FENV_ACCESS ON"
.Ft int
-.Fn fegetround "void"
+.Fn fegetround void
.Ft int
.Fn fesetround "int round"
.Sh DESCRIPTION
@@ -49,9 +49,7 @@ and the
function sets the current rounding mode to
.Fa round .
The rounding mode is one of
-.Dv FE_TONEAREST ,
-.Dv FE_DOWNWARD ,
-.Dv FE_UPWARD ,
+.Dv FE_TONEAREST , FE_DOWNWARD , FE_UPWARD ,
or
.Dv FE_TOWARDZERO ,
as described in
diff --git a/lib/msun/man/fenv.3 b/lib/msun/man/fenv.3
index 4d27712..7c6de1f 100644
--- a/lib/msun/man/fenv.3
+++ b/lib/msun/man/fenv.3
@@ -56,7 +56,7 @@
.Ft int
.Fn fetestexcept "int excepts"
.Ft int
-.Fn fegetround "void"
+.Fn fegetround void
.Ft int
.Fn fesetround "int round"
.Ft int
@@ -68,7 +68,9 @@
.Ft int
.Fn feupdateenv "const fenv_t *envp"
.Sh DESCRIPTION
-The fenv routines manipulate the floating-point environment,
+The
+.In fenv.h
+routines manipulate the floating-point environment,
which includes the exception flags and rounding modes defined in
.St -ieee754 .
.Ss Exceptions
@@ -79,25 +81,23 @@ The following macros expand to bit flags of type
.Vt int
representing the five standard floating-point exceptions.
.Bl -tag -width ".Dv FE_DIVBYZERO"
-.It Dv "FE_DIVBYZERO"
+.It Dv FE_DIVBYZERO
A divide-by-zero exception occurs when the program attempts to
divide a finite non-zero number by zero.
-.It Dv "FE_INEXACT"
+.It Dv FE_INEXACT
An inexact exception is raised whenever there is a loss of precision
due to rounding.
-.It Dv "FE_INVALID"
+.It Dv FE_INVALID
Invalid operation exceptions occur when a program attempts to
perform calculations for which there is no reasonable representable
answer.
For instance, subtraction of infinities, division of zero by zero,
-ordered comparison involving
-.Na
-s, and taking the square root of a
+ordered comparison involving \*(Nas, and taking the square root of a
negative number are all invalid operations.
-.It Dv "FE_OVERFLOW"
+.It Dv FE_OVERFLOW
An overflow exception occurs when the magnitude of the result of a
computation is too large to fit in the destination type.
-.It Dv "FE_UNDERFLOW"
+.It Dv FE_UNDERFLOW
Underflow occurs when the result of a computation is too close to zero
to be represented as a non-zero value in the destination type.
.El
@@ -123,16 +123,16 @@ from their exact values in order to fit them into binary
floating-point variables.
The four modes correspond with the following symbolic constants.
.Bl -tag -width ".Dv FE_TOWARDZERO"
-.It Dv "FE_TONEAREST"
+.It Dv FE_TONEAREST
Results are rounded to the closest representable value.
If the exact result is exactly half way between two representable
values, the value whose last binary digit is even (zero) is chosen.
This is the default mode.
-.It Dv "FE_DOWNWARD"
+.It Dv FE_DOWNWARD
Results are rounded towards negative \*[If].
-.It Dv "FE_UPWARD"
+.It Dv FE_UPWARD
Results are rounded towards positive \*[If].
-.It Dv "FE_TOWARDZERO"
+.It Dv FE_TOWARDZERO
Results are rounded towards zero.
.El
.Pp
diff --git a/lib/msun/man/fmax.3 b/lib/msun/man/fmax.3
index a5ed8e6..71cb7d9 100644
--- a/lib/msun/man/fmax.3
+++ b/lib/msun/man/fmax.3
@@ -43,13 +43,13 @@
.Fn fmax "double x" "double y"
.Ft float
.Fn fmaxf "float x" "float y"
-.Ft long double
+.Ft "long double"
.Fn fmaxl "long double x" "long double y"
.Ft double
.Fn fmin "double x" "double y"
.Ft float
.Fn fminf "float x" "float y"
-.Ft long double
+.Ft "long double"
.Fn fminl "long double x" "long double y"
.Sh DESCRIPTION
The
@@ -70,8 +70,9 @@ functions return the smaller of
.Fa x
and
.Fa y .
+They treat
.Li +0.0
-is treated as being larger than
+as being larger than
.Li -0.0 .
If one argument is an \*(Na, then the other argument is returned.
If both arguments are \*(Nas, then the result is an \*(Na.
OpenPOWER on IntegriCloud