Tiny markup nits.

This commit is contained in:
Ruslan Ermilov 2005-01-14 09:12:05 +00:00
parent 6c69a7c30b
commit e880667b92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140225
4 changed files with 23 additions and 22 deletions

View File

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

View File

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

View File

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

View File

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